Message 1 of 7

Not applicable
10-28-2020
06:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would really like to understand why this works in drawing:
(setq tst (ssget "_CP" (list '(1.0 1.0 0.0) '(3.0 1.0 0.0) '(5.0 2.0 0.0) '(2.0 4.0 0.0)) ))
(sssetfirst nil tst)
and this does not:
(setq sel (ssget "_CP" (list '(21.8654 16.9251 0.0) '(21.8654 10.9251 0.0) '(21.8654 16.9251 0.0) '(21.8654 16.9251 0.0))))
(sssetfirst nil sel)
Here a very simple function,
already checked the zoom continues with the same problem.
(defun c:TEST ( )
(setq obj (vlax-ename->vla-object (car (entsel)))
bpt (vlax-get obj 'insertionpoint)
rot (vlax-get obj 'rotation)
)
;; fast calculation just test !!
(setq pnt1 (polar bpt (+ rot (* 0.0 pi)) 2.0))
(setq pnt2 (polar bpt (+ rot (* 1.0 pi)) 2.0))
(setq X_ (polar bpt (+ rot (* 1.0 pi)) -2.0))
(setq pnt3 (polar X_ (+ rot (* 0.5 pi)) 6.0))
(setq pnt4 (polar pnt2 (+ rot (* 0.5 pi)) 6.0))
;;
(setq sel (ssget "_CP" (list pnt1 pnt2 pnt3 pnt4)))
;(setq sel (ssget "_CP" (list '(21.8654 16.9251 0.0) '(21.8654 10.9251 0.0) '(21.8654 16.9251 0.0) '(21.8654 16.9251 0.0))))
(sssetfirst nil sel)
)
Solved! Go to Solution.