How does one force a point for perpendicular snaps

How does one force a point for perpendicular snaps

Anonymous
Not applicable
448 Views
5 Replies
Message 1 of 6

How does one force a point for perpendicular snaps

Anonymous
Not applicable
This must be a common issue for which there is an easy solution. Apparently the points one gets with utility.getpoint do not become points from which a perpendicular osnap will properly register. For example when running a getpoint loop, the user may not get a perpendicular from an object back to the last getpoint. How can one force a point to be the point from which the next perpendicular will be figured?

TIA,
AKS
0 Likes
449 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Trigonometry? Or set the osnap variable to only have perpendicular?

Maybe I don't understand the question though.

I just type PER during a command.

Good luck!
0 Likes
Message 3 of 6

Anonymous
Not applicable
Sorry, I did not make this clear enough. When using PER, AutoCAD figures the perpendicular from the last selected point. Sounds easy, right?

When I use Getpoint in VBA the points selected by Getpoint never become "last selected" points. Therefore PER or any other method for setting the perp osnap generates a zinger perpendicular snap under these circumstances. AutoCAD is osnaping the perp based upon whatever was the last point selected within AutoCAD, not the last point selected in VBA.

So, figuring this is normal for Getpoint usage, I believe the solution is to somehow force the last getpoint point, which is known of course, to be the "last selected point" through some VBA technique.
0 Likes
Message 4 of 6

Anonymous
Not applicable
The easiest way is to add a point then delete it in the loop.
Perp to is not easy math, the 2d stuff is ok till you get to splines, the 3d stuff takes a lot of work.
0 Likes
Message 5 of 6

Anonymous
Not applicable
you could try...
ThisDrawing.SetVariable "lastpoint", doubleArray

wrote in message news:5646729@discussion.autodesk.com...
Sorry, I did not make this clear enough. When using PER, AutoCAD figures the
perpendicular from the last selected point. Sounds easy, right?

When I use Getpoint in VBA the points selected by Getpoint never become
"last selected" points. Therefore PER or any other method for setting the
perp osnap generates a zinger perpendicular snap under these circumstances.
AutoCAD is osnaping the perp based upon whatever was the last point selected
within AutoCAD, not the last point selected in VBA.

So, figuring this is normal for Getpoint usage, I believe the solution is to
somehow force the last getpoint point, which is known of course, to be the
"last selected point" through some VBA technique.
0 Likes
Message 6 of 6

Anonymous
Not applicable
Thanks Paul, that looks just like what I need. I had a feeling the answer was going to be a head smacker.
0 Likes