Skip to main content
14-Alexandrite
May 19, 2022
Question

Windchill WTPart Creation Utility for all CAD Documents

  • May 19, 2022
  • 1 reply
  • 710 views

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

MattPat14-AlexandriteAuthor
14-Alexandrite
May 24, 2022

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>