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
* 
Running commands from the windchill shell is supported only in the development environment.
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.
Deploy Customization on Development Environment
For information on the CCD process for deployment, see Deploy Your Customizations on Your Development Environment.
Prepare CCD Package for Promotion
For information on the CCD process for promotion, see Deploying Code and Configuration Package.
Was this helpful?