Creating Library Containers
* 
Do not use the default administrator account to create a library container. Instead, use an account that is a library creator for the organization where you are creating the container. Additionally, do not add the default administrator account as a team member of the container. For details, see Before You Begin.
Assuming the XML data below resides in a file called DataFile, it can be used to load a library with the following command:
windchill wt.load.LoadFromFile -d DataFile.xml -u librarycreator -p librarycreator
-CONT_PATH /wt.inf.container.OrgContainer=MyOrg
Example
The following is an example data file:
<?xml version="1.0"?>
<!DOCTYPE NmLoader SYSTEM "standardX20.dtd">
<NmLoader>
<csvContainer handler="wt.inf.container.LoadContainer.createContainer">
<csvcontainClass>wt.inf.library.WTLibrary</csvcontainerClass>
<csvcontainerName>Loaded Library</csvcontainerName>
<csvsharedTeamName>Shared Team 2</csvsharedTeamName>
<csvcontainerExtendable>true</csvcontainerExtendable>
<csvparentContainerPath></csvparentContainerPath>
<csvcontainerTemplateRef>General Library</csvcontainerTemplateRef>
<csvbusinessNamespace>false</csvbusinessNamespace>
<csvsharingEnabled>true</csvsharingEnabled>
<csvcreator>librarycreator</csvcreator>
<csvowner>librarycreator</csvowner>
<csvsubscriber>true</csvsubscriber>
<csvconferencingURL></csvconferencingURL>
<csvdescription>Loaded library</csvdescription>
<csvorganization></csvorganization>
<csvcreatorSelector></csvcreatorSelector>
</csvContainer>
</NmLoader>
<csvsharedTeamName>Shared Team 2</csvsharedTeamName> and <csvcontainerExtendable>true</csvcontainerExtendable> are optional. Include these only when you want to include a shared team in your load data.
Example
The following is an example batch file:
echo *************************************************
echo ** Variable Setup
echo *************************************************
set tmp_org=/wt.inf.container.OrgContainer=My Organization
echo *************************************************
echo ** Load Libraries
echo *************************************************
windchill wt.load.LoadFromFile -d libraries.xml -u librarycreator -p librarycreator
-CONT_PATH \"%tmp_org%\"
* 
Use the -u and -p parameters in batch files to eliminate the logon window.
Est-ce que cela a été utile ?