Jump to content

multiple block editing


Recommended Posts

Posted

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?

Posted

It Does Not Appear That Would Support My Programs Of 02 & 09 But Thanks

Posted

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.

Posted

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) 

   

Posted

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

Posted

So you want to change the properties of all blocks to set their colour and linetype bylayer?

Posted

Layer Translator!!!!! I Have Just Increased My Productivity By 300%

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