Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Im loading using below template xml files
TAG-0 file kept at location <loadXmlFiles\>(which got after exporting as Template)
Solved! Go to Solution.
Sample load file set I built to load library container templates (between NMLoader tag) for an older version of Windchill:
PRJ1_CONT_TEMP.xml (file used to load multiple container templates)
<?xml version="1.0"?>
<!DOCTYPE NmLoader SYSTEM "standardX05.dtd">
<NmLoader><csvCreateContainerTemplate handler="wt.inf.template.LoadContainerTemplate.createContainerTemplate" >
<csvname>Customerxx_General</csvname>
<csvenabled>true</csvenabled>
<csvxmlPath>..\..\setup\LoadFiles\TEMPLATES\PRJ1_ORG_DR_TEMPLATE.xml</csvxmlPath>
<csvcontainerClassName>wt.inf.container.OrgContainer</csvcontainerClassName>
<csvparentContainerPath>/</csvparentContainerPath>
<csvdescription>Customerxx organization template</csvdescription>
</csvCreateContainerTemplate>
</NmLoader>
PRJ1_ORG_DR_TEMPLATE.xml (used to load specific setup for my template library)
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE LibraryConfig SYSTEM "standardX10.dtd">
<LibraryConfig>
<projectMember><Role roleType="VIEWER4"></Role></projectMember>
<projectMember><Role roleType="DESIGNER"></Role></projectMember>
<projectMember><Role roleType="VIEWER2"></Role></projectMember>
<projectMember><Role roleType="EXTERNALDESIGNERS"></Role></projectMember>
<projectMember><Role roleType="VIEWER3"></Role></projectMember>
<projectMember><Role roleType="PRODUCT MANAGER"></Role></projectMember>
<projectMember><Role roleType="VIEWER1"></Role></projectMember>
</LibraryConfig>
load command
windchill wt.load.LoadFromFile -d PRJ1_CONT_TEMP.xml -u xxxx-p yyyyyy
Hope this helps
Sample load file set I built to load library container templates (between NMLoader tag) for an older version of Windchill:
PRJ1_CONT_TEMP.xml (file used to load multiple container templates)
<?xml version="1.0"?>
<!DOCTYPE NmLoader SYSTEM "standardX05.dtd">
<NmLoader><csvCreateContainerTemplate handler="wt.inf.template.LoadContainerTemplate.createContainerTemplate" >
<csvname>Customerxx_General</csvname>
<csvenabled>true</csvenabled>
<csvxmlPath>..\..\setup\LoadFiles\TEMPLATES\PRJ1_ORG_DR_TEMPLATE.xml</csvxmlPath>
<csvcontainerClassName>wt.inf.container.OrgContainer</csvcontainerClassName>
<csvparentContainerPath>/</csvparentContainerPath>
<csvdescription>Customerxx organization template</csvdescription>
</csvCreateContainerTemplate>
</NmLoader>
PRJ1_ORG_DR_TEMPLATE.xml (used to load specific setup for my template library)
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE LibraryConfig SYSTEM "standardX10.dtd">
<LibraryConfig>
<projectMember><Role roleType="VIEWER4"></Role></projectMember>
<projectMember><Role roleType="DESIGNER"></Role></projectMember>
<projectMember><Role roleType="VIEWER2"></Role></projectMember>
<projectMember><Role roleType="EXTERNALDESIGNERS"></Role></projectMember>
<projectMember><Role roleType="VIEWER3"></Role></projectMember>
<projectMember><Role roleType="PRODUCT MANAGER"></Role></projectMember>
<projectMember><Role roleType="VIEWER1"></Role></projectMember>
</LibraryConfig>
load command
windchill wt.load.LoadFromFile -d PRJ1_CONT_TEMP.xml -u xxxx-p yyyyyy
Hope this helps
Thanks @jlecoz Its helpful
Now Im trying to Load Quality containers I have loaded a template on org level named as "Quality Container Template"
but its saying "Context could not be created because the template with the name "Quality Container Template" could not be found."
while loading Quality containers
I think there is an issue with loading subtypes on Org-Level. Not sure, but if you can upload the template to site, it could work.
@jlecoz and @Rocket_Max
Please let me know if any updates for loading QMS containers
The samples I provided are for templates.
You still have to create the XML file to create the product using the loaded templates, have you done it?
Then you load it at the same level than the template.