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?
Solved! Go to Solution.
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.
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?
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.