Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Jul 11, 2005
Messages
11
Location
US
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

Back
Top