How to select Line, Polyline, Circle, ellipse by using PromptPointOptions in C#

How to select Line, Polyline, Circle, ellipse by using PromptPointOptions in C#

kite15
Advocate Advocate
1,322 Views
4 Replies
Message 1 of 5

How to select Line, Polyline, Circle, ellipse by using PromptPointOptions in C#

kite15
Advocate
Advocate

trying break the selected objects as like (command "break" pause "f" pause "@") with the C# .net

Please, help

 

thanks

0 Likes
1,323 Views
4 Replies
Replies (4)
Message 2 of 5

FRFR1426
Collaborator
Collaborator

You can use GetEntity instead of GetPoint. On PromptEntityResult, there is a PickedPoint property which allow you to retrieve the point that was used to pick the entity.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
0 Likes
Message 3 of 5

kite15
Advocate
Advocate

Hi FRFR1426,

 

Actually, i am looking for the Osnap options for accurate design flow on the fever of next coding have any solution to getpoint as well as getting the pointed entity collection with filter ??

0 Likes
Message 4 of 5

FRFR1426
Collaborator
Collaborator

You can also use GetPoint and use after Editor.SelectCrossingWindow with a small window centered on the point to get the entity (but you are not sure to get a single entity). To set the size of the window, you can use the PICKBOX system variable. You need to make a conversion pixel -> world units.

 

The safe way is to use GetEntity to get the entity, then GetPoint to get the break point.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
0 Likes
Message 5 of 5

FRFR1426
Collaborator
Collaborator

In fact, when you're using GetEntity or the break command, the current OSMODE settings is not taken in account. You have to explicitly choose an osnap mode to snap to a specific point. But the average user does not know this. 

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
0 Likes