ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

select all Entities in a grip overrule method

1 REPLY 1
Reply
Message 1 of 2
leonimas
337 Views, 1 Reply

select all Entities in a grip overrule method

Hi to all,

my goal is select all Entities inside a closed-polyline (for example inside

a 2d box) during (or post) the moving of a included Entity; I've used a grip

overrule method, but the following code:

 

acedSSGet(_T("_WP"), ptList, NULL, NULL, ssname)

acedGetCurrentSelectionSet(objIds);

 

doesn't works well: the 'objIds' array returns all Entity inside the polilyne,

defined by ptList, except the Entity that start the AcDbGrip method.

 

The above code is executed in a AcDbGrip method overrule ...

 

Can you help me  😞 ? I've used a reactor also, but the result is the same !

 

Best Regards

Leonard

1 REPLY 1
Message 2 of 2
Balaji_Ram
in reply to: leonimas

Hi Leonard,

 

Grip overrule is for customizing the grips for an entity. 

 

If it is only for taking inputs on the window selection, grip overrule is not the one that you should be using.

 

To identify the entities crossing a polyline, this blog post might be helpful :

http://adndevblog.typepad.com/autocad/2012/12/finding-the-entities-that-intersect-a-polyline.html

 

Regards,

Balaji

 

 

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost