Retrieving Xref information from within Visual Basic

Retrieving Xref information from within Visual Basic

Anonymous
Not applicable
216 Views
1 Reply
Message 1 of 2

Retrieving Xref information from within Visual Basic

Anonymous
Not applicable
I am trying to retrieve informatio about all the xrefs in the current drawing using Visual Basic. I am able to list all the defined blocks, but I have no way of evaluating which are xrefs.

I have seen some code examples using the .IsXref property of a block object - but the acad object model does not appear to support this. Even if I can get .IsXref to work, I still need to retieve more detailed information about the type of attachment.

Any suggestions much appreciated.
0 Likes
217 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
VBA doesn't expose attachment type but you can use the VisualLISP ActiveX
interface to execute a LISP expression. I have free wrapper in the form of a
class module named VLAX in the download sectionof my web site. In the VB
section is an XrefType function showing how to determine the xref's
attachment method.

--
Attitudes are contagious. Is yours worth catching?
http://www.acadx.com

Eagle wrote in message
news:ef2c91c.-1@WebX.SaUCah8kaAW...
> I am trying to retrieve informatio about all the xrefs in the current
drawing using Visual Basic. I am able to list all the defined blocks, but I
have no way of evaluating which are xrefs.
>
> I have seen some code examples using the .IsXref property of a block
object - but the acad object model does not appear to support this. Even if
I can get .IsXref to work, I still need to retieve more detailed information
about the type of attachment.
>
> Any suggestions much appreciated.
>
0 Likes