There is a tool withing the Drafting Workbench of CATIA (when you open a CATDrawing) called Sketch Analysis. It reports how many profiles there are and whether they are Closed Profiles (such as a polygon or circle) or Open Profiles (such as an arc, spline or line).
I want to activate that tool and read its output using CATScript.
As far as I know, to activate that tool you can use CATIA.StartCommand "Sketch Analysis" or CATIA.StartCommand "Sketch Solving Status"... but...all GeneratedItem are iso-constrained (coming from 3D), drawn elements are under-constrained (if they are not fixed or constrained in another way).
If I remember correctly, it will give you a small window saying the status, if you have under-constraints sketches it will be also selected on graphic area.
Ha! Very funny. Our designers are unfortunately spending too much time looking at every single DXF, when they only need to fix the ones that have geometry that is not closed. Tedious.
Anyway, do you think this might be approachable through CAA or some other means?
I don't think you can use the search tools to find out if some geometry is open or closed. Or can you?
Thank you, Eric. That sounds like a very workable idea! I don't yet know how to do much of what you explained but I get the concept and I'll research it.
Perhaps you could just explain one question. What do you mean by trim (remove lumb)?
I understand. And thank you for your suggestion. I will look that up when I need it, although I've realized I really just need to know if the shape is made without error. Quantity of bodies can be ignored for now.
However, I cannot get the Copy-Paste method to work. When I record the copy and paste within the "Record Macro", I get the copy, but the paste is just a list of the items created manually. So, the copy works fine. But .Paste is not a method of Factory2D or Sketch. I am assuming that I have to create a reference of the "Copy", but I'm not exactly clear from the documentation I have on how to put that reference into a part sketch. Is there a link someone has that explains it clearly?