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!

GetTechnologicalObject valid only for Products and not Parts/Partbodies?

Status
Not open for further replies.

Ruky

Aerospace
Sep 19, 2011
26
CA
Hi,

Problem is I keep getting errors stating that the GetTechnologicalObject does not work when I try to use it on a partbody. But it works when I use it on a product ....I basically want to get the inertia matrix of the Mainbody in a multi-partbody catpart contained in a sub assembly of a root assembly.
 
Replies continue below

Recommended for you

My approach:

Code:
Language="VBSCRIPT"

Sub CATMain()

Set partDocument1 = CATIA.ActiveDocument

Set part1 = partDocument1.Part

Set body1 = part1.Mainbody


set  myRef=part1.createreferencefromobject(body1)

Set TheSPAWorkbench = partDocument1.GetWorkbench("SPAWorkbench")

Set TheMeasurable = TheSPAWorkbench.GetMeasurable(myRef)

msgbox TheMeasurable.volume

End Sub

If You are interested in Macros in Catia (Catscripts, Catvba) feel free to send me a message. I will wrote specified macros for free and post it on eng-tips forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top