Code Red > AutoLISP (Vanilla / Visual)

copy+rename block definition

(1/2) > >>

ribarm:
Hi all,

Maybe I missed somewhere this topic as I believe it was certainly asked... I want to copy+rename block definition and I would like it to be done through picking and copying definition reference entity... So basically I want to copy block like with command COPY, but result would be not another reference of the same definition, but another reference of renamed definition... I want both definitions in DWG as result and only difference between them are their names... Bonus request is if it's possible that this task could be applicable and to dynamic blocks as well... All nesting structures of child entities and blocks should be preserved...

Thanks for any input or link I am missing...
Regards, M.R.

ribarm:
I forgot to say... All attached info of source entity and definition (XDATA, LDATA, Hyperlinks, ... ) should be copied into destination entity and definition without any difference - they must be exactly the same...

HasanCAD:
I think Lee has such as a block
http://www.lee-mac.com/copyblock.html

ribarm:

--- Quote from: HasanCAD on June 24, 2019, 09:00:11 AM ---I think Lee has such as a block
http://www.lee-mac.com/copyblock.html

--- End quote ---

Thanks for the link... This is far more elegant than copybase block in new DWG, rename there, and copybase renamed block back (pasteclip) in master working DWG...

Just haven't checked if all linked data is preserved... Maybe if Lee finds some time can answer on this statement...

ribarm:

--- Quote from: ribarm on June 24, 2019, 09:37:10 AM ---Just haven't checked if all linked data is preserved...

--- End quote ---

Just checked, both methods are fine in preseving linked data... Perfect, thanks Lee and Hasan...

Navigation

[0] Message Index

[#] Next page

Go to full version