hm_me_repdetailget

Returns the requested metadata attributes from a part representation.

Syntax

hm_me_repdetailget part_id rep_key metadata_attribute

Type

HyperWorks Tcl Query Command

Description

Returns the requested metadata attributes from representation. Either part occurrence or part prototype can be given. Request can be done for one attribute via the metadata attribute name or for all the configured metadata via “?”.

Inputs

part_id
The ID of a part or part assembly from which to retrieve the representation metadata.
rep_key
The representation key (name).
metadata_attribute
The metadata attribute name or “?” for all metadata.

Example

To retrieve the ‘fileformat’ metadata from the ‘RepCAD’ representation for part ID 5:
hm_me_repdetailget 5 RepCAD fileformat
To retrieve all metadata from ‘RepCAD’ for part ID 5:
hm_me_repdetailget 5 RepCAD ?

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