Jump to content

xRef Bounding Box


andybone

Recommended Posts

Hi all,

 

I hope someone can help me with this one. I have a drawing with several xref’s in it, and using VB I need to get a bounding box around one of the xref’s, so I can automatically zoom a view port to fit.

Is this even possible? When I use the below code I get the error Invalid Input.

I would really appreciate any help on this, as I can not progress any futher with my current project. :cry:

Thank you in advance.

 

Function GetGAHandle()

Dim xRef As AcadExternalReference

Dim xRefBL As Variant, xRefTR As Variant

 

Set xRef = ThisDrawing.HandleToObject("379FB2")

 

'Get the limits of the xRef

xRef.GetBoundingBox xRefBL, xRefTR

 

Stop

End Function

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...