Jump to content

Recommended Posts

Posted

can anyone tell me what is wrong with this one? I'm trying to select polylines that have a global width of 0.014 and change their lineweight to 0.014"

 

(setq ss2 (ssget "_X" (list '(0 . "LWPOLYLINE") (cons 43 0.014))) count 0)
(repeat (sslength ss2)
(setq pline (ssname ss2 count))
(setq elist (entget pline))
(setq elist (subst (cons 370 35) (assoc 370 elist) elist))
(entmod elist)
(entupd pline)
(setq count (+ count 1))
(princ)
)

Posted
can anyone tell me what is wrong with this one? I'm trying to select polylines that have a global width of 0.014 and change their lineweight to 0.014"

 

(setq ss2 (ssget "_X" (list '(0 . "LWPOLYLINE") (cons 43 0.014))) count 0)
(repeat (sslength ss2)
(setq pline (ssname ss2 count))
(setq elist (entget pline))
(setq elist (subst (cons 370 35) (assoc 370 elist) elist))
(entmod elist)
(entupd pline)
(setq count (+ count 1))
(princ)
)

 

Just an idea, sorry

 

(setq ss2 (ssget "_X" (list '(0 . "LWPOLYLINE") (cons 43 0.014))) count 0)
(repeat (sslength ss2)
(setq pline (ssname ss2 count))
(setq elist (entget pline))
(setq elist (subst (cons 43 0.35) (assoc 43 elist) elist))  
(setq elist (subst (cons 370 35) (assoc 370 elist) elist))
(entmod elist)
(entupd pline)
(setq count (+ count 1))
(princ)
)

 

~'J'~

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...