Quantcast
Channel: Autodesk AutoCAD forums
Viewing all articles
Browse latest Browse all 14319

How to draw a vertex indicator from OPM spin control for my custom entity?

$
0
0

Hi,

 

According to this ADN sample How to create a polyline-like vertex edit with a spin control in OPM?, I was able to implement a spin control for my custom OPM property. This is an exact replica of the polyline's vertex property:

 

opm_spincontrol_1.png

 

That's pretty nice and now I wonder how reproduce the "vertex indicator" drawn when user review the vertices. Something like this:

 

opm_spincontrol_2.png

 

I tried to set another property for my custom entity from the OPM (to indicate which vertex to highlight in the subWorldDraw function) but the display repaints itself only if I move my mouse over it. Another problem is how to draw this indicator only when user uses the spin control? If you don't check that, an indicator is drawn on the first vertex every time the entity becoms highlighted.

 

Does anyone has tried to do that? Is it that there are examples?

 

Regards,

Jonathan

 


Viewing all articles
Browse latest Browse all 14319

Trending Articles