This is a easy one...I hope
I am trying to select all (if it exists) rectangles in the layer Tx-Viewport an change it's global width to 50. But I only get this: ; error: bad SSGET list
(defun c:RectWidth ( / ss)
(if (setq ss (ssget "_X" '((0. LWPLYLINE)(8 . "Tx-Viewport"))))
(command "._pedit" ss "w" "50" ""))
(princ)
)
What is wrong?
Thanks
Solved! Go to Solution.
Solved by pbejse. Go to Solution.
@msarqui wrote:This is a easy one...I hope
I am trying to select all (if it exists) rectangles in the layer Tx-Viewport an change it's global width to 50. But I only get this: ; error: bad SSGET list
(defun c:RectWidth ( / ss)
(if (setq ss (ssget "_X" '((0. LWPLYLINE)(8 . "Tx-Viewport"))))
(command "._pedit" ss "w" "50" ""))
(princ)
)
What is wrong?
Thanks
(defun c:RectWidth (/ ss)
(if (setq ss (ssget "_X" '((0 . "LWPOLYLINE") (8 . "Tx-Viewport"))))
(command "._pedit" "_m" ss "" "w" "50" ""))
(princ))
HTH