Author Topic: Copying or Redefining Blocks into mulitple drawings  (Read 2361 times)

0 Members and 1 Guest are viewing this topic.

MSTG007

  • Gator
  • Posts: 2601
  • I can't remeber what I already asked! I need help!
Copying or Redefining Blocks into mulitple drawings
« on: July 23, 2015, 12:26:47 PM »
Has anyone had a way that the user could copy an entity (ies) from one drawing and then paste them into multiple drawings without opening the files?

Has anyone had away to redefine a block  into multiple drawings without opening them?

Curious.

Thanks guys
Civil3D 2020

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Copying or Redefining Blocks into mulitple drawings
« Reply #1 on: July 23, 2015, 12:28:54 PM »
this sounds like something that would require access to the block table record...from outside autocad (Python) or other to do this task as a batch

Be your Best


Michael Farrell
http://primeservicesglobal.com/

ronjonp

  • Needs a day job
  • Posts: 7529
Re: Copying or Redefining Blocks into mulitple drawings
« Reply #2 on: July 23, 2015, 12:41:48 PM »
Python?
Look at Lee's object dbx wrapper in conjunction with vla-insertblock or vla-CopyObjects methods.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Copying or Redefining Blocks into mulitple drawings
« Reply #3 on: July 23, 2015, 12:47:32 PM »
Python?
Look at Lee's object dbx wrapper in conjunction with vla-insertblock or vla-CopyObjects methods.
shot in the dark....
Be your Best


Michael Farrell
http://primeservicesglobal.com/

cadtag

  • Swamp Rat
  • Posts: 1152
Re: Copying or Redefining Blocks into mulitple drawings
« Reply #4 on: July 23, 2015, 12:56:54 PM »
mixing old school with new school,,,, you could generate a script that opened a drawings, redefined the block using insert oldname=drive\path\newname.dwg, then saved and opened the next dwg to process

Then feed that script toaccoreconsole.exe
The only thing more dangerous to the liberty of a free people than big government is big business

ChrisCarlson

  • Guest
Re: Copying or Redefining Blocks into mulitple drawings
« Reply #5 on: July 23, 2015, 01:32:06 PM »
I'm not sure how block entities differ from text/mtext but peruse

http://www.lee-mac.com/lisp/html/BFindV2-0.html