Jump to content

Help - Change Linetype and Linetype Scale


Recommended Posts

Posted

Hi all. Is possible to use lisp to change ALL polylines of layer named "Object_1" and "Object_2" to have

 

Linetype = Dashed

Linetype Scale = 1.2

Global Width = 1

 

Thank you

Posted

Yes,

 

Basic ideas:

 

This link will explains what you need to do to do the selection part:

http://lee-mac.com/ssget.html

and the second or 3rd result of an internet search even does that for you:

https://www.cadtutor.net/forum/topic/71231-select-all-polylines-of-certain-layer-and-fillet-them/

 

(setq sel (ssget "_X" (list '(0 . "LWPOLYLINE") '(8 . "OBJ1") (cons 410 (getvar 'CTAB)))))

 

and then the next part use 

 

(command "chprop" sel ... )and follow the prompts you'd use to change the linetype from the selection

  • Like 1
Posted

This is everything I need. It works! Thank you Steven P.

  • Like 1

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...