*exportbom

Exports a UDMXML BOM file for a given part.

Syntax

*exportbom file_name "?option1=<value1>? ?option2=<value2>? ... ?optionN=<valueN>?"

Type

HyperMesh Tcl Modify Command

Description

Exports a UDMXML BOM file for a given part.

<option>=<value> options must be enclosed in quotes, but can be provided in any order.

Inputs

file_name
The name and path of the file to write.
part_hmid=<value>
The HyperMesh part ID to be used as root for exporting.
If not specified, part_udmid is used.
part_udmid=<value>
If part_hmid is not provided, this is the UDMID of the HyperMesh part to be used as root for exporting.
recursive=<value>
0 - Only the top level elements under the part ID are exported.
1 - All elements under the part ID are exported (default).
subsystem=<value>
0 - Do not export subsystem structure.
1 - Export subsystem structure.

Example

Export a UDMXML BOM for part 2 to c:/temp/exportedbom.xml:
*exportbom c:/temp/exportedbom.xml "part_hmid=2"

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

2019.1

2020 - Added new option subsystem.