Jump to content

Recommended Posts

Posted

Please, I need help to make a LISP to execute this comands in this order. Can you help me?

 

ZOOM (EXTEND) > SELECT ALL OBJECTS > FLATTEN (REMOVE HIDDEN LINES = NO) > COLOR CONTROL = ALL BY LAYER > LINE TYPE CONTROL = ALL BY LAYER > LINE WEIGHT CONTROL =  ALL BY LAYER > PURGE (PURGE ALL ITEMS)

 

Can you help me?
 

Posted
59 minutes ago, toxicsquall said:

Please, I need help to make a LISP to execute this comands in this order. Can you help me?

 

ZOOM (EXTEND) > SELECT ALL OBJECTS > FLATTEN (REMOVE HIDDEN LINES = NO) > COLOR CONTROL = ALL BY LAYER > LINE TYPE CONTROL = ALL BY LAYER > LINE WEIGHT CONTROL =  ALL BY LAYER > PURGE (PURGE ALL ITEMS)

 

Can you help me?
 

 

Does the flatten, color, linetype and lineweight all bylayer apply to objects within blocks?

Posted

OK, try the attached. If you want entities within blocks included, it will need a few extra lines of code.

 

 

AllByLayer.lsp

  • Thanks 1
Posted

Maybe something like this

; converts blocks to bylayer proerties 
(setq  doc (vla-get-activedocument (vlax-get-acad-object))) ; open database
(vlax-for block (vla-get-blocks doc) 
(if   (not (wcmatch (strcase (vla-get-name block) t) "*_space*")) 
(vlax-for ent block 
(vla-put-color ent 0) 
(vla-put-linetype ent "Bylayer") 
(vla-put-lineweight ent aclnwtbylayer) 
)
)
)

 

  • Thanks 1
Posted

It works really well!!!

Thanks!!!!

 

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