Setting OSnap to Node after EntSel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This is what I want to do ... point blocks are at zero elevation in the drawing (but have elevations stored in the attribute list), so I want to select the point and read the elevation from the point attribute and get the elevation and coordinate as separate variables. It works, except for one thing ... I want the "node" snap turned on to reduce the chances I pick the wrong entity. Apparently, preset osnaps are ignored with entsel. Any way to turn it bank on mid command?
(command "-osnap" "node")
(setq PT1 (car (entsel "\nPick Point: "))) ; Pick Point
(setq attlist (entget PT1))
(setq elpnt1 (cadddr (assoc 11 attlist))) ; Gets Elevation only
(setq snappt (cdr (assoc 10 attlist))) ; Gets Full XYZ Coord
I'm at my wit's end here, and tried a lot of different ideas I've seen here and elsewhere, but can't seem to get it to work. The code above is my original sort of working plan.
Thanks.