shasbarg
Aerospace
- Jul 11, 2005
- 11
I've been trying to calculate the mass and center of gravity for assemblies and I’ve been running into a problem with different output from oProduct.Analyze vs. oProduct.GetTechnologicalObject("Inertia"). Both have a .mass and a method of obtaining the COG but the values are not always equal. In addition I've had the GetTech...Mass method fail on parts that the Analyze Mass method doesn't. Does anyone happen to know the difference between them and which one might be correct?
Shawn
Different code samples:
Set oInertia = oProduct.GetTechnologicalObject("Inertia")
On Error Resume Next
dMass = oInertia.Mass * 2.20462262
oInertia.GetCOGPosition dCoordinates
On Error Goto 0
or
Set oInertia = oProduct.Analyze
dMass = oInertia.Mass * 2.20462262
oInertia.GetGravityCenter dCoordinates
Shawn
Different code samples:
Set oInertia = oProduct.GetTechnologicalObject("Inertia")
On Error Resume Next
dMass = oInertia.Mass * 2.20462262
oInertia.GetCOGPosition dCoordinates
On Error Goto 0
or
Set oInertia = oProduct.Analyze
dMass = oInertia.Mass * 2.20462262
oInertia.GetGravityCenter dCoordinates