Many times, over my career in using AutoCAD, I’ve had this requirement: given a particular input vector, I’ve wanted to a jig a line perpendicular to it, within my code.
Accordingly, I have written a little class which I call the LineDirectionJigger: basically it restricts users to select one direction or another. For the sake of completeness I”m posting everything, but you will want to focus on the calling class (i.e. the getViewDirection() method) and the server, which is of course the LineDirectionJigger class.
You can see a demo of this jig starting at about 1:26 in this video here.
And here is the code:
Leave a Reply