Looking for Guidance: Getting Bounding Box from BlockReference using VB.NET with Late Binding

Looking for Guidance: Getting Bounding Box from BlockReference using VB.NET with Late Binding

sonchai_n
Contributor Contributor
135 Views
0 Replies
Message 1 of 1

Looking for Guidance: Getting Bounding Box from BlockReference using VB.NET with Late Binding

sonchai_n
Contributor
Contributor

I'm developing a VB.NET application that integrates with AutoCAD using Late Binding, so that it can work across multiple AutoCAD versions without referencing Autodesk DLLs directly.

I can access ModelSpace and work with BlockReference objects using Late Binding (e.g., .Name, .HasAttributes, .Position all work fine).

The issue is with calling .GetBoundingBox(minPt, maxPt) — using Reflection or InvokeMember, it either returns Nothing or throws a NullReferenceException.

If you have any working samples, techniques, or experiences, your input would be greatly appreciated 🙏

0 Likes
136 Views
0 Replies
Replies (0)