this may help... look here for Fixblock.lsp
http://www.manusoft.com/Software/Freebies/Main.stm
Registered forum members do not see this ad.
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?




this may help... look here for Fixblock.lsp
http://www.manusoft.com/Software/Freebies/Main.stm
It Does Not Appear That Would Support My Programs Of 02 & 09 But Thanks


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.




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
Code:(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)
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



So you want to change the properties of all blocks to set their colour and linetype bylayer?
Registered forum members do not see this ad.
Layer Translator!!!!! I Have Just Increased My Productivity By 300%
Bookmarks