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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Application container Creator Loader Utility

Selva
1-Visitor

Application container Creator Loader Utility

Hi all,


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



thanks

8 REPLIES 8
ddemay
7-Bedrock
(To:Selva)

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
Selva
1-Visitor
(To:Selva)

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

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
achukwuka
1-Visitor
(To:Selva)

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
Selva
1-Visitor
(To:Selva)

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

ddemay
7-Bedrock
(To:Selva)

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
ddemay
7-Bedrock
(To:Selva)

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












Selva
1-Visitor
(To:Selva)

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)


Announcements


Top Tags