I have been able to do this with 2D objects by getting the objects Extents then setting the Section view. But this approach is not applicable with 3D.
Any help appreciated.
The reply to the following post seems to suggest that programatically moving the camera to the selected object is possible:
The extents property has Front and Back properties in addition to Left, Right, Top, Bottom.
But the Camera position has X,Y,Z co-ordinates...
So how do you use the extents to set the camera position?
Another tantalizing post:
For 3D bojects:
2. Define your specify EModelCamera object base on the boundaries (IAdCube).
3. Set you specify 3D view to render objects via EModelSection.Camera property.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register