Message 1 of 3
How does ObjectSnapTypes.Perpendicular work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'd like to understand how ObjectSnapTypes.Perpendicular and ObjectSnapTypes.Quadrants work.
I assumed that to get these to work the user would have to pick a point and then the snap would work when the user selects the second point.
But I can't see any way of passing the first point to the ObjectSnapType class. I've tried this:
XYZ p1 = uidoc.Selection.PickPoint(ObjectSnapTypes.None); XYZ p2 = uidoc.Selection.PickPoint(ObjectSnapTypes.Perpendicular); TaskDialog.Show("Message", p1.ToString() + "\n\n" + p2.ToString());
But the snaps don't work.
Is there something I should be doing first?
Thanks.