cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Windchill WTPart Creation Utility for all CAD Documents

MattPat
12-Amethyst

Windchill WTPart Creation Utility for all CAD Documents

Hi,

I have never used Windchill Part Creation Utility. One of our clients moved from Essentials to PDMLink and wants to create WTParts for all existing CAD Documents.

Can someone help me set up an XML file for all CAD Docs in DB? We want to skip folder specifications etc. and create WTParts for all cads. 

Documentation doesn't help at all 😞 
WTPartCreator  

 

Thanks in advance 

1 REPLY 1
MattPat
12-Amethyst
(To:MattPat)

I found out how to create WT Part for a specific part by name, but when I try to create parts for a specific folder Windchill Shell gives an error: 

wt.util.WTException: org.xml.sax.SAXException: Line: 19, Column: 157 - java.lang.NullPointerException
Nested exception is: org.xml.sax.SAXException: Line: 19, Column: 157 - java.lang.NullPointerException

folder name is: "Export DB" in Context "Export DB" in Organization "Demo Organization", can someone help mi with this? XML below:

<PartAction Create="True" Class="wt.part.WTPart">
			 <FolderSpec CriteriaJoin="And">
				<FolderCriteria ConditionJoin="And">
					<FolderCondition  Operator="equal" Value="/Default/Export DB" 
Context="/wt.inf.container.OrgContainer=Demo Organization/wt.pdmlink.PDMLinkProduct=Export DB"/>
				</FolderCriteria>
		  </FolderSpec>
			<PISpec CriteriaJoin="And">
				<PICriteria ConditionJoin="And">	
				
				       <PICondition Lookup="type_def" Operator="equal" Value="CADPART"/>

				</PICriteria>
		  </PISpec>
		</PartAction>
Announcements
PLM On Demand