Design Review

Reply
Member
_Sari
Posts: 5
Registered: ‎06-18-2009
Message 1 of 3 (365 Views)

Zoom the object in 3D

365 Views, 2 Replies
08-31-2009 01:06 AM
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?
Employee
whtank
Posts: 119
Registered: ‎06-16-2009
Message 2 of 3 (365 Views)

Re: Zoom the object in 3D

09-08-2009 07:38 PM 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.

Member
_Sari
Posts: 5
Registered: ‎06-18-2009
Message 3 of 3 (365 Views)

Re: Zoom the object in 3D

09-10-2009 05:25 AM 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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.