Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Replacing only some blocks of the same definition

Anonymous

Replacing only some blocks of the same definition

Anonymous
No aplicable

Hi,

 

I do a lot of drafting placing lights in a room/building/etc, and often I am given a drawing with one generic block in place of every light on a floor (for example, "Light"). Once I get specific lights assigned, however, I need to go through and swap out the generic block with a more specific, detailed light. The replace block tool in the express tools seems to only redefine every instance of the block, but I would like to find a way to replace selected "Light" blocks with one new block and other "Light" blocks with another. Is there an easy way of doing this? Right now I'm just putting nodes at the insertion point of each "Light" block, deleting that block, and inserting the new one, but this can be very time consuming.

 

Thank you,

 

Josh

 

Using AutoCAD 2015 on a Windows 8 machine.

0 Me gusta
Responder
Soluciones aceptadas (2)
863 Vistas
4 Respuestas
Respuestas (4)

3wood
Advisor
Advisor
Solución aceptada

Please try attached MBLOCKREPLACE.vlx. Command name: MBLOCKREPLACE

 

0 Me gusta

pendean
Community Legend
Community Legend
Solución aceptada
There are many free 'replace block' lisp routines out there, try a search. I'll get you started here https://www.google.com/?gws_rd=ssl#q=block+replace+lisp

3wood
Advisor
Advisor

...

leothebuilder
Advisor
Advisor

I don't think there is an out of the box command to do that.

This is probably possible with some autolisp customizing.

 

If you don't get any other good responses in this forum I would place this question in the Customization Forum.

 

http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130