Centre of gravity on assembly local coordinates

Tekla Structures
Not version-specific
Tekla Structures
Environment
Not environment-specific
Question:
In assembly drawings, is it possible to show/calculate center of gravity coordinates on an assembly’s local coordinates rather than on global coordinates?

Answer:
Calculate an assembly’s local COG coordinate values from the start point of the main part using the following formulas (on the ASSEMBLY content type row):
x: fabs(GetValue("MAINPART.START_X")-GetValue("COG_X"))
y: fabs(GetValue("MAINPART.START_Y")-GetValue("COG_Y"))
z: fabs(GetValue("MAINPART.START_Z")-GetValue("COG_Z"))
…or if you prefer using the PART row:
x: fabs(GetValue("ASSEMBLY.MAINPART.START_X")-GetValue("ASSEMBLY.COG_X"))
y: fabs(GetValue("ASSEMBLY.MAINPART.START_Y")-GetValue("ASSEMBLY.COG_Y"))
z: fabs(GetValue("ASSEMBLY.MAINPART.START_Z")-GetValue("ASSEMBLY.COG_Z"))
Was this helpful?