Author Topic: Need Block help  (Read 2269 times)

0 Members and 1 Guest are viewing this topic.

mgtricon

  • Guest
Need Block help
« on: March 17, 2008, 11:27:08 AM »
I been using VBA for Microsoft Office but new to AutoCAD VBA, and its a little different than Lisp that I am used to.  So what I would like to do is check a drawing to see if a block exists in the drawing or not.  I have about 2,000+ drawings to go through and check which ones contain the specific block.  I know I can do something similar in checking excel documents closed for certain words but can it be done for Cad.  It will take a long time to check all these drawings if they have to be opened then verified.

hendie

  • Guest
Re: Need Block help
« Reply #1 on: March 17, 2008, 11:30:29 AM »
if you had carried out a little search you would have found this

http://www.theswamp.org/index.php?topic=21818.0

Guest

  • Guest
Re: Need Block help
« Reply #2 on: March 17, 2008, 11:36:00 AM »
WHOA!!  Deja Vu!!    :-)

mgtricon

  • Guest
Re: Need Block help
« Reply #3 on: March 17, 2008, 12:07:57 PM »
I did look at it, and did not know if I needed to start a new topic or not, but it looks like his document is already open.  What I would like to do is check for the block without opening the drawing. 
Quote
Mycollection = ThisDrawing.SelectionSets
Using this line is for the open and current drawing, correct.  I am not sure how to query an unopened drawing that is my delima.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Need Block help
« Reply #4 on: March 17, 2008, 12:20:05 PM »
Look at ObjectDBX, it will allow you to work on drawings without opening them in AutoCAD. There are a few examples here on the swamp plus many more on the web. A simple google search should turn up enough examples to get you going.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie