Hi,
I have complex custom entities and I'd like to implement advanced manipulation like grip points of Polyline. I'm looking for how to draw a custom glyph neer the AutoCAD crosshair cursor, like AutoCAD does when you convert a polyline segment to an arc or you add a vertex (look at the image below).
All suggestions are welcomed.
Best regards,
Jonathan
Solved! Go to Solution.
Solved by maisoui. Go to Solution.
For example with help of AcEdInputPointMonitor::monitorInputPoint.
Using AcGiViewportDraw* drawContext parameter you can draw yours own graphics.
Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"
Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Hi,
I was able to implement that I wanted by combining an AcEdInputPointMonitor and a Transient Entity. Have a look to sample AsdkTransientGraphicsSampFolder of OARX 2009. In method monitorInputPoint you have to update the position of the transient entity and that's it.
Note: If you use kAcGiDirectTopmost as drawing mode (when adding transient), entity will be drawn over grips.
I hope this will help somebody else.
Regards,
Jonathan