eInvalidInput on creating New Extents3D? bug?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to get true geometric extents of an object within a block reference. I use something along these lines:
Dim blk AsBlockReference= blkEnt
Dim minPoint AsPoint3d= ent.GeometricExtents.MinPoint.TransformBy(blk.BlockTransform)
Dim maxPoint AsPoint3d= ent.GeometricExtents.MaxPoint.TransformBy(blk.BlockTransform)
Return New Extents3d(minPoint, maxPoint)
This does work most of the time, but there are some blocks that return eInvalidInput right on the return line. I have verified and there are no issues with minPoint or MaxPoint, the "seem" fine. So then i explode the block and reblock it, and the problem goes away.
Now that's a pain to ask the user to do, obviously there's a bug somewhere, and reblocking the block fixes it, but I just don't understand why that's the problem. Because the points look fine.
So i copied what was in the maxpoint while it was causing an issue and after. Here's the result:
{(26.2088309295071,10.4729497919566,0)}
{(26.1150809295071,10.4729497919566,0)}
The bottom one is the one that would cause an issue. Now, its interesting that they are different, i reblocked it and placed it in the precisely the same spot.
Anyone see a problem here?