×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

GetTechnologicalObject valid only for Products and not Parts/Partbodies?

GetTechnologicalObject valid only for Products and not Parts/Partbodies?

GetTechnologicalObject valid only for Products and not Parts/Partbodies?

(OP)
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.

RE: GetTechnologicalObject valid only for Products and not Parts/Partbodies?

My approach:

CODE --> CATScript

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources