Draw custom rubberband between two points

Draw custom rubberband between two points

fehrsZBFB9
Advocate Advocate
307 Views
3 Replies
Message 1 of 4

Draw custom rubberband between two points

fehrsZBFB9
Advocate
Advocate

Hallo Guys,

I have point input scenario where I want to draw a rubberband between the mouse cursor and the nearest point on a line. The base point is constantly changing. I currently use an InputPointMonitor combined with the TransientManager to draw this line but it should look exactly like a rubberband. Is there a way to get AutoCAD draw this rubberband? If not, is there a way to obtain the rubberband's color and pattern?

0 Likes
Accepted solutions (1)
308 Views
3 Replies
Replies (3)
Message 2 of 4

ActivistInvestor
Mentor
Mentor
Accepted solution

You can use a Jig, and set the BasePoint Property of the JigPromptOptions-based type inside of the Sampler() method

Message 3 of 4

fehrsZBFB9
Advocate
Advocate

Thanks. I have to look at Jig-Classes first before I cann accept your solution. I never used them in .NET.

0 Likes
Message 4 of 4

ActivistInvestor
Mentor
Mentor