(AUTOCAD MEP) lisp to replace "any block" with any "device"

(AUTOCAD MEP) lisp to replace "any block" with any "device"

jtm2020hyo
Collaborator Collaborator
1,607 Views
5 Replies
Message 1 of 6

(AUTOCAD MEP) lisp to replace "any block" with any "device"

jtm2020hyo
Collaborator
Collaborator

(AUTOCAD MEP) lisp to replace "any block" (regular, dynamic) with any "device" (for MEP)

 

I already tried to command REPLACEBLOCK but does not work.

help, please.

 

image.png

 

 

image.png

 

 

 

image.png

 

 

 

 

 

 

 

0 Likes
Accepted solutions (1)
1,608 Views
5 Replies
Replies (5)
Message 2 of 6

3wood
Advisor
Advisor

I guess you can make a new block from the "device". Then do the block replacement. Explode the block after the replacement.

Message 3 of 6

pendean
Community Legend
Community Legend
Message 4 of 6

jtm2020hyo
Collaborator
Collaborator

Thanks for your interesting

sadly you're suggesting does not work because AutoCAD MEP has objects called "devices"
"devices" it's like a dynamic block in a 99% but is not considered a dynamic block for AUTOCAD

...so the command REPLACEBLOCK does not work here.


I can explore the "device" and obtain the block inside the object but without their other properties

...I do not need the block, I need the "device" one with all their properties. In my case, I need lighting wiring properties.

 

AUTOCAD MEP it's like REVIT MEP

0 Likes
Message 5 of 6

3wood
Advisor
Advisor
Accepted solution

Sorry my post was not very clear.

Make a new Block A, the content of the block is your "device". So the "device" is inside the Block A.

Message 6 of 6

jtm2020hyo
Collaborator
Collaborator

This is not what I was looking for, but works.

If someone has Lisp for doing this directly, humanity will be grateful.

0 Likes