×
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

catia : use VBA to create an InertiaVolume in the part, not just get the results.

catia : use VBA to create an InertiaVolume in the part, not just get the results.

catia : use VBA to create an InertiaVolume in the part, not just get the results.

(OP)


Hi,
I am looking for a way to create an InertiaVolume in catia (see picture) using VBA.
Do you have any idea ?
I need it to be created in the part, I can't afford to just get the measure results.
Thanks

RE: catia : use VBA to create an InertiaVolume in the part, not just get the results.

Hi

' Find the workbench
Dim TheSPAWorkbench As Workbench
Set TheSPAWorkbench = CATIA.ActiveDocument.GetWorkbench ( "SPAWorkbench" )

' Create the inertia for a product
Dim ProductInertia As Inertia
Set ProductInertia = TheSPAWorkbench.Inertias.Add(Product)

' Get some inertia data
Dim Mass As Double
Mass = ProductInertia.Mass
Dim Coordinates(2)
ProductInertia.GetCOGPosition Coordinates
Dim Matrix(8)

Regards
Fernando

https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU

RE: catia : use VBA to create an InertiaVolume in the part, not just get the results.

(OP)
OK THANKS A LOT
BUT...
IS THERE A WAY OF DISPLAYING THE INERTIAVOLUME AT THE SCREEN ?

RE: catia : use VBA to create an InertiaVolume in the part, not just get the results.

(OP)
YES THAT 'S WHAT i WANTED TO AVOID...
THANKS

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