×
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

Global and Local Origin in Products

Global and Local Origin in Products

Global and Local Origin in Products

(OP)
Hello All,

I'm fairly new to VBA macros in CATIA. I've been trying to build a macro to automate section creation and export (without having to use the SPA license). The idea is: you open a Product, you select a plane, and the macro creates a section of the Product at the given plane, and exports it as Sketch(es) in a separate Part file. The trouble I'm having is: this would ONLY work if the Part containing the above-said plane has the same origin as the Root Product.

My question: Is there a method of finding the position of a plane in a Part, whose origin is different from the origin of the Root Product?

None of the usual suspects work: Measurables, GetPostion, etc. only yield the position of the plane from a Local origin, and not a Global origin. Please help!

RE: Global and Local Origin in Products

that's why we have matrix algebra so we can multiply and add matrices...

Eric N.
indocti discant et ament meminisse periti

RE: Global and Local Origin in Products

(OP)
It's weird. I got the GetComponents method in Product.Position to work. It didn't work for me yesterday.

RE: Global and Local Origin in Products

yesterday was not a good day!

Eric N.
indocti discant et ament meminisse periti

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