Design Review
Welcome to Autodesk’s Design Review Forums. Share your knowledge, ask questions, and explore popular Design Review topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Zoom the object in 3D

2 REPLIES 2
Reply
Message 1 of 3
_Sari
568 Views, 2 Replies

Zoom the object in 3D

What zoom the object in 3D, knowing his coordinates.

From sample:
'//Object extents - use these to zoom into all objects in the user collection.
MyObjectsNamedCollection.Flush()
MyObjectsNamedCollection.AddNamedItem(TempObject, "TempObject")
ObjectContent2.Objects(1) = MyObjectsNamedCollection
If Section.Href.Contains("eModel") Then
cObjectExtents = CType(ObjectContent2.Extents(MyObjectsNamedCollection), AdCommon.IAdCube)
end if

What use cObjectExtents?
2 REPLIES 2
Message 2 of 3
whtank
in reply to: _Sari

Thank you for your question.
cObjectExtents is an 'IAdCube' object which is similar with IAdRect object in 2D, from which you can retrieve the bounding box of one object.
You can fill the 'EModelSection.Camera' with this bounding box if you want to zoom an object in 3D.
Please let me know if this suggestion is helpful or if you have any follow-on questions.
-Tank


Tank
SW Engineer
PSEB-GE-ACRD-CPG
Autodesk, Inc.

Message 3 of 3
_Sari
in reply to: _Sari

Prompt please, what assign the coordinates of the camera knowing cObjectExtents.Top, cObjectExtents.Left, cObjectExtents.Right, cObjectExtents.Bottom, cObjectExtents.Back, cObjectExtents.Front object?
I can not understand, as on this coordinate to install the camera in necessary position?

Shall very grateful.

Edited by: _Sari on Sep 10, 2009 12:26 PM Edited by: _Sari on Sep 10, 2009 12:30 PM

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

Post to forums  

Autodesk Design & Make Report