Skip to main content
1-Visitor
May 19, 2011
Question

Application container Creator Loader Utility

  • May 19, 2011
  • 8 replies
  • 1517 views

Hi all,


PTC Guide provides any loader for Creators (Library/Product) by default.
Anybody have some idea?



thanks

8 replies

1-Visitor
May 19, 2011
Your question is not clear. Do you desire to load users into the container /context creator roles using the xml load from file framework?



Sent from my Verizon Wireless BlackBerry
Selva1-VisitorAuthor
1-Visitor
May 19, 2011

Yes Dave you are correct. I want to load the Users through XML Loader framework like loading SoftTypes/ SoftAttributes through XML.

1-Visitor
May 19, 2011
Plenty of examples in the <wt_home>/loadfiles directory for user loads. You have access to the CSV file. If you need the XML you’ll of course find it in the loadXMLfiles folder instead.

Typically I do this in CSV then run the CSV2XML utility to convert to XML and quickly load into Windchill. You just need to have the appropriate CSV format which can be found in the loadfiles directory.


[cid:image001.gif@01CC1603.744677F0]

Steve Vinyard
Application Engineer
1-Visitor
May 19, 2011
Here is a sample csv for user load.

HTH,

Thanks

Alexius C. Chukwuka
Infrastructure Analyst, Global SAP Basis - TCM
Deere & Company World Headquarters
400 19th St, Moline, IL 61265
Selva1-VisitorAuthor
1-Visitor
May 19, 2011

Thanks for your replies to all. Sorry I have not asked the question correctly.


I have used the Load From file utility to load the users but my requirement is something different.


I have user1,user2.....userN.


I want to load the users through load from file utility and to add them in the Product/Library Creators Role in Organization, Because I do not want to add the users manually (since I may have 100-200 users).


thanks

1-Visitor
May 19, 2011
I will send/post the syntax. If you ever have a question about these, good to look at csvmapfile.txt



Sent from my Verizon Wireless BlackBerry
1-Visitor
May 22, 2011
You must load this into an organization context/container only to work
properly.

Users must be loaded in a load file or created in ldap/principal
administrator before running this load file.



Users specified MUST have their organization attribute match the
organization for which they are being given the creator role.



From a windchill shell:



Windchill wt.load.LoadFromFile -u siteuseradmin -p siteuserpassword -d
container-creators-role-orgname.xml -CONT_PATH
"/wt.inf.container.OrgContainer=YourOrgName"



Note: the above command on Windows may need the quotes in CONT_PATH escaped
i.e. \"/wt.inf.container.OrgContainer=YourOrgName\"





Here is contents of the load file (note this sample was derived from a PTC
sample already provided in the loadFiles directory):







<nmloader>

<csvaddcreator handler="wt.inf.container.LoadContainer.addCreator">

<csvusernameordn>someuseridproductcreator</csvusernameordn>

<csvcontainerclassname>wt.pdmlink.PDMLinkProduct</csvcontainerclassname>

</csvaddcreator>

<csvaddcreator handler="wt.inf.container.LoadContainer.addCreator">

<csvusernameordn>someuseridlibrarycreator</csvusernameordn>

<csvcontainerclassname>wt.inf.library.WTLibrary</csvcontainerclassname>

</csvaddcreator>

</nmloader>







Hope this helps,

David DeMay












Selva1-VisitorAuthor
1-Visitor
May 22, 2011

Hi Dave,


It works perfectly for me. thanks a lot for your solution.


1. first I loaded users through users.xml


2. then creators.xml (where users added to the creators role)