Skip to main content

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.

 

If i want to use overlapping features to clip other features, I normally give an id to the clip areas, use a spatial relator to find which features relate to the clip areas and build a list of relationships, then a list exploder, this then goes into the clippee port of the clipper, using the clip area id as a group by


Yes, you must clone the clippees as many times as they relate to clippers.

Mentioned List exploding after relating is akin to cloning.

There are a couple of techniques for that. Which to use would be dependent on the amount of objects. (you would not want to clone a zillion objects...)


If i want to use overlapping features to clip other features, I normally give an id to the clip areas, use a spatial relator to find which features relate to the clip areas and build a list of relationships, then a list exploder, this then goes into the clippee port of the clipper, using the clip area id as a group by

Can you give an example? I got 32 circles when I did that, but I want to cut the box, not the circles.


Yes, you must clone the clippees as many times as they relate to clippers.

Mentioned List exploding after relating is akin to cloning.

There are a couple of techniques for that. Which to use would be dependent on the amount of objects. (you would not want to clone a zillion objects...)

I think the end product will be like 40 dwg polygon areas that are touching eachother, +10 m buffer around each of them

 


Reply