Example 3: Selecting and Deselecting CAD Documents with the Following Attributes
Here is an example XML script where the part selection criteria selects CAD documents with specific criteria and eliminates CAD documents with specific criteria.
For this example, All CAD documents with the following attributes are selected:
All CAD documents with a version of “A” and a version of “C”
For this example, All CAD documents with the following attributes are not selected (eliminated):
CAD documents in the folder “Root Folder/Back_Up”
<Specifier>
<PartAction Class="wt.part.WTPart">
<PIVSpec CriteriaJoin="Or">
<PIVCriteria ConditionJoin="And">
<PIVCondition Version= "specific” Value="A"/>
<PIVCondition Version= "specific" Value= "C"/>
</PIVCriteria>
</PIVSpec>
</PartAction>
<PartAction Class=”wt.part.WTPart” Create=”False”>
<FolderSpec CriteriaJoin="And">
<FolderCriteria ConditionJoin="And">
<FolderCondition Lookup= "Fullpath"
Operator="equal" Value="Root
Folder/Back_Up"/>
</FolderCriteria>
</FolderSpec>
</PartAction>
</Specifier>
<?xml version="1.0 encoding="UTF-8"?>
<!--
Where
Indicates
<PIVCondition Version=
"specific” Value="A"/>
All CAD documents with a version of A.
<PIVCondition Version=
"specific" Value= "C"/>
All CAD documents with a version of C.
<PIVCriteria ConditionJoin=
"And">
The condition for joining PIV criteria is And. In this example, this means that the criteria are all CAD documents with a version of A and a version of C.
<PartAction Class=”wt.part.
WTPart” Create=”False”>
The part selection criteria does not select CAD documents with the following attributes.
<FolderCondition Lookup=
"Fullpath" Operator="equal"Value="RootFolder/Back_Up"/>
The folder name.
Est-ce que cela a été utile ?