Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Autocad 2015 VBA GetBoundingBox coordinate system problem.

7 REPLIES 7
Reply
Message 1 of 8
ADTrishin
1504 Views, 7 Replies

Autocad 2015 VBA GetBoundingBox coordinate system problem.

 

VBA GetBoundingBox doesn't work in autocad 2015 as in 2014.

 

For example -

1. extrude profile strait forward by some axis non complanar to any wcs axises

2. rotate solid to be complanar to some wcs axis

result - coordinates returned by GetBoundingBox are worng for wcs.

 

Still everything was fine in autocad 2014.

 

Anyone knows how can i fix it?

 

Thanks in advance!

7 REPLIES 7
Message 2 of 8

No idea.

If it were me, I'd ask about changes here: http://forums.augi.com/forumdisplay.php?88-Programming


Melanie Stone
Facilities Data Management
IWMS / CAFM / CMMS / AutoCAD / Archibus / Tririga / Planon / MRI Manhattan CenterStone / Revit / data normalization, data mapping, reporting and process documentation
mistressofthedorkness.blogspot.com/
Message 3 of 8

Thanx, I'll give it a try.

 

Do you have the same error?

Message 4 of 8
SEANT61
in reply to: ADTrishin

A couple of questions.
The “Rotate solid . . . .” statement in your example; is that done manually, or via automation?
Does the returned GetBoundingBox values match what would be returned by the MASSPROP command?

************************************************************
May your cursor always snap to the location intended.
Message 5 of 8
ADTrishin
in reply to: SEANT61

Solid rotation is made by hands.

 

Massprop returns right result.

Message 6 of 8
SEANT61
in reply to: ADTrishin

Yes.  I agree - that does not look good. 

 

The sample solid I tried wasn't even close.  And, as you've already pointed out, AutoCAD 2014 VBA handled the task well.  2015 is making me a little nervous.


************************************************************
May your cursor always snap to the location intended.
Message 7 of 8
SEANT61
in reply to: SEANT61

Examine the attached drawing and compare the Bounding Boxes to what is returned by the GetBoundingBox Method. It appears that AutoCAD 2015 is storing the original bounding box displacements/vectors/points (Perhaps in one or more of the DXF group codes 1010, 1011, 1012, 1013), and those values update via any Transformation procedures. Even if the transformation happen programmatically.

 

The GetBoundingBox Method may then be reading those values. The result, unfortunately, returns the bounding box of the original bounding box.

 

A procedure may have to EXPLODE the transformed solid, and calculate the bounding box of all the explosion remnants.


************************************************************
May your cursor always snap to the location intended.
Message 8 of 8
pendean
in reply to: SEANT61

VBA forum with more focused responses can be found here http://forums.autodesk.com/t5/Visual-Basic-Customization/bd-p/33

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost