Deleting a Life Cycle Template Using a Loader
You can delete life cycle templates using a loader. This loader file is located in the <Windchill> folder and is run from the Windchill shell. The loader can be run in two modes:
1. ALL — Deletes all iterations of the life cycle templates.
2. LATEST_ITERATION — Deletes only the latest iteration of the life cycle templates.
Below is an example of the loader file:
<?xml version="1.0"?>
<!DOCTYPE NmLoader SYSTEM "standard13_1.dtd">
<NmLoader>
<csvLifeCycleTemplateDelete handler="wt.lifecycle.LoadLifeCycle.deleteLifeCycleTemplate">
<csvTemplateName>02_LCT</csvTemplateName>
<csvcontainerPath>/wt.inf.container.OrgContainer=Demo Organization/wt.pdmlink.PDMLinkProduct=GOLF_CART</csvcontainerPath>
<csvdeleteOption>ALL</csvdeleteOption>
</csvLifeCycleTemplateDelete>
</NmLoader>
To run the loader from the Windchill shell, use the following command:
windchill wt.load.LoadFromFile -d ../LoadLifeCycle_DeleteLifeCycle.xml -u wcadmin -p wcadmin
Isto foi útil?