|
|
The extraction of data from the VPDM can be
automated by running the CATPDMExtractEV5Batch batch process. This batch is
driven via a command line giving as input the root of the assembly on which
the extraction will be done. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ArgumentsConnection Information-server xxx : Server name. General Information-help Help |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -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 that:
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.
Example of XML naming rule fileFor ENOVIA VPM V4:NamingRuleForVPM.xml For ENOVIA V5 VPM:
NamingRuleForEV5.xml List of xml node and attribute of XML naming file
List of internal attributes
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ExamplesWhen running batches, you must always:
For more details, see the Infrastructure Guide, Basic Tasks, Starting a Session on Windows.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Limitations
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DiagnosticsPossible exit status values are:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||