Message 1 of 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone!
I am trying to get a selection set to the view coordinates but with no luck.
Form here I get Lee Mac's code to get the coords.
(defun LM:ViewportExtents ( / c h v ) (setq c (trans (getvar 'viewctr) 1 0) h (/ (getvar 'viewsize) 2.0) v (list (* h (apply '/ (getvar 'screensize))) h) ) (list (mapcar '- c v) (mapcar '+ c v)) )
But when I put it on the ssget it does not work.
(setq sel (ssget "_CP" (LM:ViewportExtents)))
Any help please?
Solved! Go to Solution.