2briancox
Aerospace
- Dec 22, 2014
- 34
I'm now at the point I often run into with CATIA VBA. I know what I want to do. I've spent hours looking for the tools in forums and in the help files, that I need to get it done. And I end up getting nowhere.
I want to make a Macro that creates a Bounding Rectangle with the default axis system of all geometry that exists in a sketch within a CATPart. I think my strategy should be to go through every geometry, find its X and Y extrema (largest and smallest) and keep cycling until I know the largest and smallest X and Y of all geometry and make a box using that data.
I found HybridShapeExtremum, but that seems to only apply to geometry from the GSD workbench, and I want sketch geometry. Would anyone know how to go about solving this?
I want to make a Macro that creates a Bounding Rectangle with the default axis system of all geometry that exists in a sketch within a CATPart. I think my strategy should be to go through every geometry, find its X and Y extrema (largest and smallest) and keep cycling until I know the largest and smallest X and Y of all geometry and make a box using that data.
I found HybridShapeExtremum, but that seems to only apply to geometry from the GSD workbench, and I want sketch geometry. Would anyone know how to go about solving this?