Администрирование предприятия > Утилита "Создание детали" > Using Elements to Create XML Scripts > Putting it All Together – Applying Structure and Syntax > Examples of Common Part Selection Criteria > Example 1: Selecting Singular CAD Documents with the Following Attributes
  
Example 1: Selecting Singular CAD Documents with the Following Attributes
Here is an example XML script where the part selection criteria only selects CAD documents with the following attributes:
Latest CAD document with a release level of “Released”
In the folder “Root Folder/Ready_to_be_Released”
<Specifier>
<PartAction Class="wt.part.WTPart">
<FolderSpec CriteriaJoin="And">
<FolderCriteria ConditionJoin="And">
<FolderCondition Lookup= "Fullpath"
Operator="equal" Value="Root
Folder/Ready_to_be_released"/>
</FolderCriteria>
</FolderSpec>
<PIVSpec CriteriaJoin="Or">
<PIVCriteria ConditionJoin="And">
<PIVCondition Version= "Latest"/>
</PIVCriteria>
</PIVSpec>
</PartAction>
</Specifier>
<?xml version="1.0 encoding="UTF-8"?>
<!--
* 
The WTParts to be created in this example are Standard WTParts. The WTParts do not contain end items. End items cannot be traced.
Where
Indicates
<FolderCondition Lookup="Full path" Operator="equal"Value="RootFolder/Ready_to_be_released"/>
The folder name.
<PIVCondition Version="Latest"/>
Only the latest CAD documents with a release level of Released.