Executing a Batch File

You use the Generic Batch utility to run a specified batch utility and to pass arguments to the batch utility.

See Also
3DEXPERIENCE Utility Adapter
Configuring the Utility's Execution Options
Configuring the Pre-Execution Options
Configuring the Post-Execution Options
  1. From the Utilities section of the action bar, click 3DEXPERIENCE Utility and drop it on the process diagram.
  2. Double-click 3DEXPERIENCE Utility .
  3. From the 3DX Utility editor that appears, select the Execution tab.
  4. From the Select a 3DX Utility menu, select Generic Batch.
  5. If the batch utility will operate on an object in the process (such as a part or a simulation), do either of the following:
    • Select Content, and select the object in the workflow or search for an object.
    • Select Parameter, and select a parameter representing the object.

    Important: If you are importing a file or object, do not select anything in the Select Object section.

  6. To upload a document containing the XML file that lists the name of the batch utility to run and its arguments, do either of the following:
    • To upload a non-versioned document, select
    • To upload a versioned document, select .
  7. If prompted, click Yes from the dialog box that appears to save the simulation process and to continue.
  8. From the Select files dialog box that appears, select the XML file to upload.

    The XML file should list the name of the batch utility to run and any arguments that are passed to the batch utility. An example of the contents of the XML file is shown below.

    <?xml version='1.0' encoding='UTF-8' ?>
    <root>
    	<Option name="PLMBatchName">DataExchangePLMBatch</Option>
    	<Option name="Operation">Export</Option>
    	<Option name="Usage">STEP</Option>
    	<Option name="Extension">stp</Option>
    	<Option name="Material">${Material}</Option> 
    </root>
    

    Note: You can use the CATUTIL utility to determine the arguments that are expected by the batch utility. For more information, see Native Apps Common Services: Running a Batch from the Command Line.

  9. Click Open.
    The object on which the batch utility will operate and the document containing the XML file are added to the simulation activity's Internal Data category.
  10. Select the Execution Options.
  11. Click OK to save your changes and to close the 3DX Utility editor.