hm_modent_getrepresentationdefinitions

Returns the number of modular entity representations available, and those realized.

Syntax

hm_modent_getrepresentationdefinitions entity_type mark_id ?ignoretransient=<value>? ?libraryinfo=<value>?

Type

HyperMesh Tcl Query Command

Description

Returns the number of modular entity representations available, and those realized.

They are returned by their representation keys (identifier). For example:

{Crash5} { available 2 realized 1 }

{Crash10} { available 1 realized 0 }

Inputs

entity_type
The modular entity type. Supported for parts and subsystems.
mark_id
The ID of the mark containing the modular entities. Valid values are 1 and 2.
ignoretransient=<value>
0 - Return all representations
1 - Return only representations saved as files
libraryinfo=<value>
0 - No library info provided
1 - Return library information regarding specific representation

Examples

To get the saved representations that are available, and those realized, for subsystems on mark 1:
*createmark subsystems "by id only" 4 6 8
hm_modent_getrepresentationdefinitions subsystems 1 ignoretransient=0

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

2020

2024 - Added parts to supported entity types.