hi-liter Posted December 20, 2008 Posted December 20, 2008 i have an architectural drawing created from ARCHICAD (or whatever) anyway the blocks are terrible. lets say i have nearly 1000 blocks as each door (and so on) is a different block. i would like to 'clean' the drawing to our standards. Is there a way to get all or a selected portion of blocks to modify properties together; either change every individual door block to bylayer or change the layer or color? Quote
lpseifert Posted December 20, 2008 Posted December 20, 2008 this may help... look here for Fixblock.lsp http://www.manusoft.com/Software/Freebies/Main.stm Quote
hi-liter Posted December 20, 2008 Author Posted December 20, 2008 It Does Not Appear That Would Support My Programs Of 02 & 09 But Thanks Quote
totzky Posted December 20, 2008 Posted December 20, 2008 Autocad 09 has this capability to filter layer. Go to layer manager and see upper left portion. It can isolate layers with similarities at one click. And from there editing them is easier. Quote
BIGAL Posted December 22, 2008 Posted December 22, 2008 Here is some code that changes the linetype in a block the linetype is a non Autocad linetype hence the change. The code came from the forum here so I am sure you could change it to do Bylayer or set colour and layer (vl-load-com) (setq adoc (vla-get-activedocument (vlax-get-acad-object))) (vla-startundomark adoc) (vlax-for block (vla-get-blocks adoc) (if (not (wcmatch (strcase (vla-get-name block) t) "*_space*")) (vlax-for ent block (if (= (vla-get-linetype ent ) "solid" ) (progn (vla-put-linetype ent "Continuous") (princ (vla-get-name block)) ) );_ end of if ) ;_ end of vlax-for ) ;_ end of if ) ;_ end of vlax-for (vla-regen adoc acactiveviewport) (vla-endundomark adoc) (princ) Quote
hi-liter Posted December 22, 2008 Author Posted December 22, 2008 THANKS FOR THE RESPONSES.......I AM LOOKING FOR LIKE A BATCH CONVERSION, WHERE I CAN DO A NUMBER OF DIFFERENTLY NAMED BLOCK(EDITS)S ALL AT ONCE FOR EXAMPLE: BLOCK "1" IS ON "A" COLOR BUT "1a" LAYER AND WHILE BLOCK "2" IS ON "B" COLOR AND ALSO ON "1a" LAYER. WHAT I WANT TO DO IS CHANGE THE PROPERTIES OF BOTH BLOCKS (I HAVE LIKE 1000 HERE) OR ALL BLOCKS FROM COLOR "X" TO BYLAYER WITHIN THE BLOCK. SORT OF LIKE A MULTI-BLOCK EDIT COMMAND OR SOMETHING. IF THAT CODE IS WHAT I AM LOOKING FOR I APOLOGIZE I AM WONDERING IF I HAVE ONCE AGAIN EXPLAINED THINGS TERRIBLY Quote
wannabe Posted December 22, 2008 Posted December 22, 2008 So you want to change the properties of all blocks to set their colour and linetype bylayer? Quote
hi-liter Posted December 22, 2008 Author Posted December 22, 2008 Layer Translator!!!!! I Have Just Increased My Productivity By 300% Quote
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.