Hi, I looked at many previous questions but didn't find a good answer to solve it so I make a new question with many screenshots.
My Workspace.
I create 1 box between 0,0 and 100,100 and 20 random circles with a radius of 5 with a center within that box.
I send all circles to a custom transformer "cutloop"
(I somehow need to attach a loop within here, and maybe an expressionevaluator and tester this is the main part I need help with)
My writer is a dwg with a fanout expression so if I run it as it is now I get 20 "InsideX.dwg" layers for each cut box feature.
This is very important part, I must have one file for each part of the box where a circle overlaps.
My problem as it is now, is that some circles overlap, and since all features are read as one, the inside is not working correctly and I dont get full circles. I want individual full circles for the box which is inside each circle. (Inspected before I write each circle separatly) (Blue now I want red)
Everything works nicely except I need to find a way to use the loop within the custom transformer to run the clipper 20 SEPARATE times on the same area without using the already cut box overlapping / cutting where there may be overlapping circles.
Like Circle 1, cut box where the circle is overlapping as Inside1.dwg
Circle 2, cut box where the circle is overlapping as Inside2.dwg (AS A FULL CIRCLE Even if its overlapping like the selected example in previous picture)
The outside1 is also wrong since it is only 1 feature that looks like a cut cheese , I want 20 individual files here as well for everything except each individual full circle that is cut away (outside the circle).
(Note the final product won't be FMEcircles but will be using a dwg input features so I cant use multiline RECTANGE(0,0)<comma> as I've seen some examples on the hub, that wont work for me.