Samples of Windchill Development & Administration
  (Including Install, Implementation & Configuration):

========================================================

Change Management Reporting Tool:

Java command line method & JSP to Html Reporting:

Zip (with java source, classes & jsp): cmReport16.zip

Sample Html Output Report: Change_Management_Reporting.htm

Sample PDF Output Report: Change_Management_Report.pdf

(Program does not output PDF)

Instructional Page: http://windchill.datajett.com/wc_dev/cmReport.htm

========================================================

Windchill Database Object Rename Program (Command Line Java Method):

Can rename whole windchill database epm-doc & wtpart objects:

Rename project:

http://windchill.datajett.com/wc_dev/lj_cust/ObjMan_06.zip

Some companies choose to auto truncate the extension on
their cad data files (epm-docs) & wtparts, through ini file settings:

<WT_HOME>\codebase\com\ptc\windchill\cadx\cfg\default\cadxhtmlui.ini

UploadDropNameFileExtension=true
UploadDropNumberFileExtension=true
AutoAssociateDropNameFileExtension=true
AutoAssociateDropNumberFileExtension=true

This tool was generated to rename existing whole windchill database & all
it's objects *epm-doc & wtparts number fields, prior to changing to truncate
method as described above:

command line:

To query objects 1st:

java lj_cust.ObjMan_06 -qb %.DRW
java lj_cust.ObjMan_06 -qb %.ASM
java lj_cust.ObjMan_06 -qb %.PRT

To rename objects 1st:

java lj_cust.ObjMan_06 -rb %.DRW
java lj_cust.ObjMan_06 -rb %.ASM
java lj_cust.ObjMan_06 -rb %.PRT

run program without arguments to see Usage:

java lj_cust.ObjMan_06

The rename program will rename all data files/objects that previously
contained file extensions.

It renames windchill epm-doc (drw, prt, asm) & wtpart objects to
truncate the extension of the windchill oracle number field.

from: xxx1.prt, xxx2.asm & xxx?.drw

to: xxx1, xxx2 & xxx?.D
(can be modified to a different extension for drawings = _D, ???)

Some firms link to name their asm & prt files the same for
integrated/inseparable parts. This program will rename the .PRT to .P,
so there is no duplicate objects numbers:

http://windchill.datajett.com/wc_dev/lj_cust/PA_Ren_06.java

========================================================

Windchill, Oracle or Intralink JSP SQL Query Tool for standard info:

WTPARTMASTER, WTDOCUMENTMASTER, WTORGANIZATION,
EPMWORKSPACE, WFPROCESS, CONTAINERTEAM, WTGROUP,
WTLIBRARY, WTUSER, etc.

Download JSP to Query Windchill/PdmLink, Oracle or Intralink DB.

It should be placed in your IE (InfoEngine) JSP folder also:

<WT_HOME>\codebase\infoengine\jsp\

http://windchill.datajett.com/wc_dev/jsp/dbjett_jsp.zip

Java Command Line Method to SQL Query of a Windchill, Oracle or Intralink Database.
Used to query windchill/oracle/intralink for standard info (same as above JSP Query,
but this is a java application & output can go to html, txt (text), cvs, etc):

Open Instructional & download Page:

http://windchill.datajett.com/DBJettJT/DBJettJT.htm

========================================================

Customized workflows:

http://windchill.datajett.com/wc_dev/workflow/cust_wf.htm

========================================================

Webject Samples:

Sample Display-Table Webject JSP, that displays my Employment History:
http://windchill.datajett.com//wc_dev/jsp/LJ_EmpHist.jsp.txt

The JSP file should be placed in your IE (InfoEngine) JSP folder:
<WT_HOME>\codebase\infoengine\jsp\
========================================================
It reads its data from a task xml file (Virtual Database [VDB]):
http://windchill.datajett.com/wc_dev/tasks/LJ_EmpHist.xml

The task xml file should be placed in your tasks/example folder:
<WT_HOME>\tasks\infoengine\examples\
========================================================
This JSP file below is also a Display-Table Webject, but uses a Windchill IE
SAK Java Bean and contains the employment history within:
http://windchill.datajett.com/wc_dev/jsp/LJ_EmpHist_JB.jsp.txt

It should also be placed in your IE (InfoEngine) JSP folder:
<WT_HOME>\codebase\infoengine\jsp\
========================================================
After renaming (drop .txt), all JSP files can then be viewed from your
Virtual Windchill JSP location:

http://Host.Company.com/Windchill/infoengine/jsp/LJ_EmpHist.jsp
or
http://Host.Company.com/Windchill/infoengine/jsp/LJ_EmpHist_JB.jsp
========================================================

jsp- (most all code should be placed in your Windchill virtual jsp folder:

<WT_HOME>/codebase/infoengine/jsp )

java- (most all code is generated with package lj_cust, which should be
located at <WT_HOME>/codebase/lj_cust - easily modifiable )

========================================================

Query LifeCycle States:
Simple java class to query lifeCycle states:

http://windchill.datajett.com/wc_dev/lj_cust/lifecycleState.java
http://windchill.datajett.com/wc_dev/lj_cust/lifecycleState.class

Example:

wt.lifecycle.State[0]: ACCEPTED
wt.lifecycle.State[1]: APPROVED
wt.lifecycle.State[2]: ASSEMBLY
wt.lifecycle.State[3]: ASSIGNED
wt.lifecycle.State[4]: CANCELLED
...............

========================================================

http://windchill.datajett.com/wc_dev/lj_cust/LJ_Objects_05.class http://windchill.datajett.com/wc_dev/lj_cust/LJ_Objects_05.java

java lj_cust.LJ_Objects_05
Introspection Runtime Mode = true
WtPart - Number: GC000002 - Name: LEG
WtPart - Number: GC000003 - Name: LEFT_ACTUATOR
........
Number of WTPartMaster Objects: 58

EpmDoc - Number: 00000001 - Name: xxx.prt
EpmDoc - Number: 00000002 - Name: yyy.asm
........
Number of EPMDocument Objects: 201

WtDocument - Number: 0000000042 - Name: wtpart_sql_chk.csv
WtDocument - Number: 0000000043 - Name: wtpart_sql_chk2.csv
WtDocument - Number: 1234.doc - Name: 1234.doc
........
Number of WTDocument Objects: 14