TheSwamp

Code Red => VB(A) => Topic started by: arnolds on January 03, 2006, 05:45:25 PM

Title: xref help
Post by: arnolds on January 03, 2006, 05:45:25 PM
I have a VBA routine that queries for a block in the drawing, sums up a few attributes, and dumps them in a standard AutoCAD 2006 table. It works great for the current drawing. However, I would like to also grab the same attribute information from any of the same blocks that might
be in attached xrefs.

Is this an easy thing to do or is it an involved procedure? If it is easy to do, can someone point me in the right direction?

I know the enhanced attribute extraction tool does this but this needs to be in a separate routine.
Title: Re: xref help
Post by: deegeecees on January 03, 2006, 05:54:50 PM
arnolds,

What is your coding background? This will help to figure out if it is an involved proceedure for you.

DGC
Title: Re: xref help
Post by: arnolds on January 03, 2006, 06:04:51 PM
LISP, VB, VBA, Delphi as I needed to learn. I'll try anything once. What I'm really looking for is some idea on whether or not I'll be writing hours of code or if it is just a few calls that I'm not aware of.

Thanks
Title: Re: xref help
Post by: Jeff_M on January 03, 2006, 08:05:26 PM
Not hours.... ;-)
Just step through the XrefDatabase property of the Block Object for the Xref.......
Title: Re: xref help
Post by: arnolds on January 04, 2006, 12:01:46 PM
got it.

Thanks Jeff