Author | IMSI/SoftDev | [Prev] [Next] by Author |
Category | Drawing Control | [Prev] [Next] by Category |
Keywords: | ||
Type (Source?) | Macro (VBA) | |
Licence | Example | |
Status | To be reviewed |
Description
This example shows how to manipulate the View using the Camera object. Zoom, scroll, tilt, pan, orbit and rotate methods are exercised, as well changing to/from perspective view. This macro uses a dialog box (user form) and shows have to give feedback to the user (X, Y, Z coordinates are updated as view is manipulated).
This macros uses the following objects: Application, Camera, Drawing, Render, Renders, RenderView, Vertex, and View.
Build Instructions
Download and unzip the archive. Add a new project named "CameraTest" to any TurboCAD drawing, and attach the CameraSample.tcm file. Run the CameraTest macro and click on the various buttons to zoom, scroll, tilt, pan, orbit and rotate your view.