Skip to main content

Hi all,

I have a dgn file and I'm trying to build the following algorithm

(1) form polygons using selected levels of the dgn file

(2) check the number of centroids inside polygons

(2.1) add a centroid when there is no centroid inside the polygon

(2.2) if multiple centroids are inside a polygon, change the level of those centroids.

How can I achieve the step 2.2.?

rajout-centroide-igds2igds.fmw


Hi @arthy, would be helpful if you can post some data next to your workspace. Sp that ppl can have an idea what they are dealing with.


@itay,

Here is the workspace that I produced rajout-centroide-igds2igds.fmw and also a file test.dgn to test as you requested.


@itay,

Here is the workspace that I produced rajout-centroide-igds2igds.fmw and also a file test.dgn to test as you requested.

Hi @arthy, the thing about dgn is that you cant update the level so writing a new dgn is the only option.

 

Have a look at the attached workspace for a possible solution.

 

multiple-centroids.fmw

 

Hope this helps

 


That looks OK to me. Just add an AttributeManager attached to the Tester:Passed port, that sets igds_level to a new value

 

 


Hi @arthy, the thing about dgn is that you cant update the level so writing a new dgn is the only option.

 

Have a look at the attached workspace for a possible solution.

 

multiple-centroids.fmw

 

Hope this helps

 

@itay,

 

Thanks Based on your suggestions, I edites my workspace and I was able to get my results.

Reply