andybone Posted April 6, 2009 Share Posted April 6, 2009 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. 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.