*ME_ModuleRepresentationAddFile2

Adds a representation file to a part or a part assembly.

Syntax

*ME_ModuleRepresentationAddFile2 part_id rep_key fileformat filename ?options?

Type

HyperMesh Tcl Modify Command

Description

Adds a representation file to a part or a part assembly prototype. Either an occurrence or a prototype can be given.

Inputs

part_id
The ID of a part or part assembly for which to add the representation file.
rep_key
The representation key (name).
fileformat
The representation file format (for example, JT).
filename
The representation file name (complete file path).
options
The optional list of inputs passed as a comma separated string. Reserved for future use.

Example

To add a representation file to part ID 5:
*ME_ModuleRepresentationAddFile2 5 RepCAD JT S:/ALT13120121_003_XML71.jt

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

2023