I am writing CATIA VBA code to manipulate and swap planes in an assembly. I'm having trouble finding the correct CATIA API to read a specific plane's Ax+By+Cz=D equation. I am aware of CATIA's HybridShapePlaneEquation
and HybridShapeAxistoAxis
objects, but there's no documentation on how to derive the objects from the CATIA.ActiveDocument
object, and i'm not even sure if these are the correct APIs to use.
Given an assembly, how can I allow a user to:
- Select a plane by clicking on it under the Geometric Set or External Reference section
- Display the plane equation in a
MsgBox()