Yeah, the forum is stable again!
Sorry David for starting this new topic. I thought the script was ready for primetime.
The attached (first post this topic) script does work for the included test cases, but still is feature incomplete.
This started out to be a quick fix script and I ran down a rabbit (rab-bot?) hole.
So this script works, but not with all STEP files yet.
Background
1. All shapes must be closed, internal and external. Otherwise it won't nest or appear as separate objects.
2. Importing a STEP file creates un-joined primitives, but does create true Circles. For nesting use all shapes must be closed, internal and external.
3. Silhouette created circles are not true circles, but it does close primitives.
The attached code looks convoluted because:
1. - Silhouette created circles are not true circles (Polyline and Arc). Even when the source is a Circle.
2. - I have to identify and compare arcs to true circles
3. - Specific checks must be made to check for intentional 'D' shaped objects as per first item
4. + Polylines are joined correctly with Silhouette
5. - I now need to check for two arcs that close to form a circle (not going to assume they are each 180 degrees, but are likely)
Should I continue down this path, or re-evaluate the process entirely and find a better method?
Paul