Author Topic: copy+rename block definition  (Read 361 times)

0 Members and 1 Guest are viewing this topic.

ribarm

  • Water Moccasin
  • Posts: 2128
  • Marko Ribar, architect
copy+rename block definition
« on: June 24, 2019, 08:37:14 AM »
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.
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

ribarm

  • Water Moccasin
  • Posts: 2128
  • Marko Ribar, architect
Re: copy+rename block definition
« Reply #1 on: June 24, 2019, 08:58:09 AM »
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...
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

HasanCAD

  • Swamp Rat
  • Posts: 1306
Re: copy+rename block definition
« Reply #2 on: June 24, 2019, 09:00:11 AM »
I think Lee has such as a block
http://www.lee-mac.com/copyblock.html

ribarm

  • Water Moccasin
  • Posts: 2128
  • Marko Ribar, architect
Re: copy+rename block definition
« Reply #3 on: June 24, 2019, 09:37:10 AM »
I think Lee has such as a block
http://www.lee-mac.com/copyblock.html

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...
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

ribarm

  • Water Moccasin
  • Posts: 2128
  • Marko Ribar, architect
Re: copy+rename block definition
« Reply #4 on: June 24, 2019, 10:04:54 AM »
Just haven't checked if all linked data is preserved...

Just checked, both methods are fine in preseving linked data... Perfect, thanks Lee and Hasan...
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

HasanCAD

  • Swamp Rat
  • Posts: 1306
Re: copy+rename block definition
« Reply #5 on: June 24, 2019, 10:20:02 AM »
Just haven't checked if all linked data is preserved...

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

All Appreciation to LEE I am just Links index.

Lee Mac

  • Seagull
  • Posts: 12270
  • London, England
Re: copy+rename block definition
« Reply #6 on: June 24, 2019, 12:42:54 PM »
Just haven't checked if all linked data is preserved...

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

All Appreciation to LEE I am just Links index.

Thanks both.  :-)