samifox Posted September 14, 2018 Share Posted September 14, 2018 hi I want to write a script that selects all polyline with non zero global width and clear them. how can I go for that? Thanks S Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 17, 2018 Share Posted September 17, 2018 So simple (vla-put-constantwidth obj 0.0) I will leave it up to you to do the ssget bit. Quote Link to comment Share on other sites More sharing options...
rkmcswain Posted October 3, 2018 Share Posted October 3, 2018 Perhaps this will help? (defun c:foo ( / sset ent obj i) (setq sset (ssget "_X" '((0 . "*POLYLINE"))) i 0) (repeat (sslength sset) (setq ent (ssname sset i)) (setq obj (vlax-ename->vla-object ent)) (vla-put-constantwidth obj 0.0) (setq i (1+ i)) ) (princ) ) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.