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

How to draw a custom glyph near the AutoCAD crosshair cursor?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
maisoui
878 Views, 2 Replies

How to draw a custom glyph near the AutoCAD crosshair cursor?

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).

 

glyph_cursor.png

 

All suggestions are welcomed.

Best regards,

Jonathan

 

--
Jonathan
2 REPLIES 2
Message 2 of 3
Alexander.Rivilis
in reply to: maisoui

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
Expert Elite Member

Message 3 of 3
maisoui
in reply to: maisoui

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

 

--
Jonathan

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

Post to forums  

Autodesk Design & Make Report

”Boost