cart: empty [ Login ]

Rectangle Selection with options

1 
sarge
4/5/2017 8:11 PM
Hi, can you tell me how its possible to create a selector for elements that are - completly in an rectangle - also partially in an rectangle Basicly is quite simple for line's, if you need it for curves, arc segemnts or circles etc, it gets a little complicated .. Is there something build in (if there is something could you give me an advise?) if not .. any suggestions how/where I can start kind regards
Wout
4/5/2017 8:38 PM
Hi, The EntitySelector class has several method overloads for different kinds of rectangle selection, for example method GetEntitiesPartiallyInRectangle(). - Wout
sarge
4/23/2017 1:24 PM
Hi, I nearly got it to work as I wish, but I ran into something "strange" behave: On the first image it's a corner of my test dxf .. if I use the EntitySelector.GetEntitiesInRectangle Method (DxfModel, GraphicsConfig, Matrix4D, Rectangle2D) the result is empty. For me there must be at least the arc segment. On the seconde image I used EntitySelector.GetEntitiesPartiallyInRectangle Method (DxfModel, GraphicsConfig, Matrix4D, Rectangle2D) the result on this dxf is that the whole outline entities will be selected. I think I'm doing anything wrong atm .. as many other I used some example code and changed it the way I think it meets my requirements. Do you have any idea or suggestion why this happening? kind regards
StrangeSelection_01.png
StrangeSelection_02.png
Wout
4/23/2017 1:56 PM
Would need to see the data. It could be a polyline containing arcs. - Wout
sarge
4/23/2017 4:57 PM
It seems to be so. Is it a solveable problem? kind regards
sarge
4/26/2017 6:53 PM
Hi, little question, can have a polyline an arc or is an arc approximate by line segments? or this there a way of exploding a polyline like the dxflwpolyline.explode? kind regards
1