-delete :
Force deletion for files already existing in output folder before
extraction.
-srmload :To activate or not the option "SRM extraction" when
loading documents. Default value is true.
-epexml : To generate an XML template file that can be used by
reconciliation batch.
-report : To generate an XML report listing extracted documents-namingRules:
Define the XML file in which renaming rules are defined. Those rules use
predicates on VPMD attributes of the Part or the document. Rules
priority is mapped on rules order inside the XML files(Only the first
rule encountered with predicate set to true will be used)
-noDraftingUpdate: Enables to inhibit the update of
CATDrawing before save. It is highly recommended not to use this option
in case of assembly drawing on top of storage mode set to structure
exposed.
Note:
-
If only -pvs argument is passed: The PRC information
read from PVS dynamically and it is expanded with PVS filter criteria.
If -pvs and -prc argument is passed: The PRC information is not read
from PVS, the passed PRC argument will be taken as root and only PVS
filter criteria will be used for expanding the root
-
-prc is optional.
-
-adddoc is optional, the value expected is the value of the V_ID
attribute plus the extension of the document separated by a dot.
-
More than one ENOVIA V5 VPM document can be added to the session:
each document can be added by a -adddoc statement.
-
Documents are extracted to path given by -out argument. If
documents already exist with the same name the extraction will failed.
-
About traces: the batch will run in background due to
infrastructure limitations (see Part3 limitations list). To retrieve the
batch traces, you should use environment variable CNEXTOUTPUT.
Declaration of naming rule convention for Extract:
Declaration is done in
an XML file that contains a list of Naming Extract Rules. Each rule is
made of one condition and one naming operator. If the condition is
verified, the naming operator will be used to generate the file name used
when saving the file to disk.
Condition
is made of a series of Predicates and each predicate is defined by an
attribute id, a comparison operator and a
value. The attribute can be selected from VPDM
attributes or internal attributes of the document,
or from the root product of this document for a CATPart or
a CATProduct. Internal attributes are standard attributes
such as document type, Part or document name or it could be specific to
the VPDM system; for instance for ENOVIAVPM,
we can access an environment or a table. The attribute of a Root Product of
CATPart or CATProduct, has an attribute id
that starts with the string “Part.”.
Naming Operator
is a series of string elements that will be concatenated to define the
name of the file. You do not have to add the file extension it
will be automatically done by the program.
<NamingRule>
<ExtractRule
id="R1">
<Condition>
<Predicate type=“internal”
id=“Type”
operator=“=”
value=“CATPart”/>
<Predicate type=“internal”
id=“VPM.Environment”
operator=“LIKE”
value=“W*”/>
<Predicate type=“VPDM”
id=“Part.Part
Number” operator=“LIKE”
value=“P00*”/>
</Condition>
<NamingOperator>
<Element type=“internal”
id=“VPM.Environment"
length=“10“
padding=“
”/>
<Element type=“string”
id=“_" />
<Element type=“VPDM”
id=“Part.
Part Number” />
<Element type=“string”
id=“_" />
<Element type=“VPDM”
id=“Part.
Part Version”
/>
</NamingOperator>
</ExtractRule>
<ExtractRule Name=“R2”>
…
</ExtractRule>
</NamingRule>
Example of XML naming rule file
For ENOVIA VPM V4:NamingRuleForVPM.xml
For ENOVIA V5 VPM:
NamingRuleForEV5.xml
List of xml node and attribute of XML naming file
|
XML Node |
Attribute |
Description |
|
NamingRule |
Root of the XML document |
|
ExtractRule |
Define a new Naming rule for EPE extraction utilities. <ExtractRule
Name=“R1”> |
|
Id |
Rule identifier. |
|
Condition |
Define the condition to activate an extraction rule. |
|
Predicate |
Define a predicate for a condition. |
|
type |
Define the type of attribute to test. Value could be:
internal or VPDM. |
|
id |
Identifier of the attribute to be tested. If Id is prefixed by
Part. The string attribute will be found on the child
Part (root product). |
|
operator |
Test operator, it could be: =
or LIKE. |
|
value |
Value to be used for predicate evaluation. |
|
NamingOperator |
|
|
Element |
One element to be used to build a name by concatenation. |
|
type |
Defines the type of attribute to
test. Value could be:
String
Id is the string
value to be inserted in the name.
internal
Id is the name of
an internal attribute to be used.
VPDM
Id is the name
of a VPDM attribute to be used. |
|
id |
Identifier of the attribute to be used. If Id is prefixed by
Part. String attribute will be found on child Part (root
product). |
|
length |
Number of characters to be
inserted.
If the string is too small, we will pad
with padding characters, if defined. Otherwise length is only
considered as a maximal length of the string to be concatenated.
If the string is too large only the length
first characters will be used. |
|
padding |
Optional: Enables the use of a character string as
padding if attribute length is smaller than the value defined in
length. |
List of internal attributes
|
Attribute |
Description |
|
General internal attributes |
|
Name |
Current identifier of the document or
the part. |
|
Type |
File extension for document or Part. |
|
StorageMode |
PUBLICATION_EXPOSED or STRUCTURE_EXPOSED. |
|
Environment |
ENOVIA5 or VPM1. Indicates the environment:
ENOVIA V5 VPM or ENOVIAVPM. |
|
Internal attributes for ENOVIAVPM |
|
VPM.Environment |
ENOVIAVPM environment. |
|
VPM.Table |
ENOVIAVPM table. |
|
Internal attributes for ENOVIA VPM V5: |
|
EV5.Type |
Could be PRC, PV or DR.
PRC stands for Product Root Class
PV stands for
Part Version
DR stands for
Document Revision |
|