*importbom

Imports a UDMXML BOM file into a given part.

Syntax

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

Type

HyperMesh Tcl Modify Command

Description

Imports a UDMXML BOM file into 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 read.
importoption=<value>
The import option as child, replace or merge.
overwriteattribs=<value>
Valid when importoption=merge.
0 - Do not overwrite attributes.
1 - Overwrite attributes.
subsystem=<value>
0 - Do not import subsystem structure.
1 - Import subsystem structure.
target_part_hmid=<value>
The HyperMesh part ID to be used as root for importing when importoption=child.
If not specified, part_udmid is used.
target_part_udmid=<value>
If target_part_hmid is not provided, this is the UDMID of the HyperMesh part to be used as root for importing when importoption=child.

Example

Import UDMXML BOM under UDM part ID $udmid from file C:/temp/exportedbom.xml:

*importbom C:/temp/exportedbom.xml "importoption=child overwriteattribs=1 target_part_udmid=$udmid"

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.