Create CONM2 from NX Metadata

Alejandro Cervantes
Alejandro Cervantes Altair Community Member
edited February 23 in Community Q&A

Hi, 

Im working on a script to create CONM2 elements from NX Metadata attributes of an assembly. Workflow is the following:

1. Update mass properties in NX and write them as attributes.

2. Import BOM into Hyperworks

3. Query all metadata from each part/part assembly (NX_Mass, NX_MassPropCenterOfMassX, MomentofInertias, etc, etc...)

4. Create CONM2 with an associated system.

Here is the trouble:

NX writes the CoG and MoI in the local system of each part, not in the global coordinate of the assembly.

So I try to get the transformation matrix of each part via [hm_getvalue modules id=$myPart dataname=transformation_matrix] and then apply *transformmark using the obtained matrix. However, I dont manage to get it to work. The system and node Im trying to transform, never gets positioned as expected. Could someone share any experience here? How to use *transform command? can this be done with *translatemark and *rotatemark?

Concretely, how to interpret these values?

image

x0y0z0 is straightforward, but what are the other "triples" and how I can use them to position my CONM2 element?

 

thanks and best regards,

Alejandro

Tagged:

Answers