Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
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
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>