Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Analyze vs. GetTechnologicalObject("Inertia")

Status
Not open for further replies.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor