Gpathy
Mechanical
- Jul 23, 2015
- 2
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!
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!