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

How to handle Ctrl click in move grip point?

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
maisoui
1415 Views, 3 Replies

How to handle Ctrl click in move grip point?

Hi,

 

I have a custom entity and I'd like to have a similar behavior to the polyline's displacement of the grip point. When you move a grip of a polyline, you can cycle between 3 options (stretch, add vertex and convert to line/arc). Does anyone know how to reproduce this?

 

autocad_cycle_movegrip.png

 

Regards,

Jonathan

 

--
Jonathan
3 REPLIES 3
Message 2 of 4
Balaji_Ram
in reply to: maisoui

Hello Jonathan,

 

The multiple grip mode switching is achieved through a protocol extension implemented by the AcDbMultiModesGripPE class.

Your custom entity can implement this PE to support this functionality.

 

I have attached a .Net sample from the Developer Days 2010 samples.

This sample demonstrates the use of MultiModesGripPE which is the .Net equivalent of AcDbMultiModesGripPE.

 

I dont have an ObjectARX sample for it, but the attached sample should provide you with the steps.



Balaji
Developer Technical Services
Autodesk Developer Network

Message 3 of 4
maisoui
in reply to: Balaji_Ram

Thank you for your answer. I was on the way to implement your solution, but it seems that AcDbMultiModesGripPE (dbMultiModesGrip.h) was introduced in OARX 2011 or 2012. Right?

unfortunately I can't use this protocol extension because I use OARX 2010 (necessary to consider all my clients).

 

In addition to your response, I would like to know if there is a document containing the list of all protocol extensions available in SDK?

 

Regards,

Jonathan

 

--
Jonathan
Message 4 of 4
Balaji_Ram
in reply to: maisoui

Yes,  you are right. This was introduced in OARX 2011.

 

Sorry, I am not aware of any separate documentation on PE classes.

The arxdoc.chm also includes those classes.



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