Announcements

Community notifications may experience intermittent interruptions between 10–12 November during scheduled maintenance. We appreciate your patience.

How to handle Ctrl click in move grip point?

How to handle Ctrl click in move grip point?

maisoui
Advocate Advocate
1,979 Views
3 Replies
Message 1 of 4

How to handle Ctrl click in move grip point?

maisoui
Advocate
Advocate

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
0 Likes
Accepted solutions (1)
1,980 Views
3 Replies
Replies (3)
Message 2 of 4

Balaji_Ram
Alumni
Alumni

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

0 Likes
Message 3 of 4

maisoui
Advocate
Advocate

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
0 Likes
Message 4 of 4

Balaji_Ram
Alumni
Alumni
Accepted solution

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