hm_me_protoreplistget

Returns a list of the representation keys from a part prototype.

Syntax

hm_me_protoreplistget part_id ?options?

Type

HyperWorks Tcl Query Command

Description

Returns a list of the representation keys from a part prototype. A part prototype should be given. If specific representation type is given via options, the list will contain only representations of that type.

Inputs

part_id
The ID of the part or part assembly from which to retrieve the representation key list.
options
The optional list of inputs passed as a comma separated string. Valid options are: type=<type>.

Example

To retrieve the list of all representation keys for part ID 5:
hm_me_protoreplistget 5
To retrieve the list of CAD representation keys for part ID 5:
hm_me_protoreplistget 5 type=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