*ME_ModuleRepresentationAdd2

Adds a representation to a part or a part assembly.

Syntax

*ME_ModuleRepresentationAdd2 part_id rep_key rep_type ?options?

Type

HyperMesh Tcl Modify Command

Description

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

Inputs

part_id
The ID of a part or part assembly to which to add the representation.
rep_key
The representation key (name).
rep_type
The representation type.
options
The optional list of inputs passed as a comma separated string. Reserved for future use.

Example

To add a ‘RepCAD’ representation of type CAD to part ID 5:
*ME_ModuleRepresentationAdd2 5 RepCAD CAD

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