C# Code to Control AutoCAD's Camera

639 views Asked by At

In AutoCAD 2015 you can use this camera control to instantly get different views of your model

enter image description here

And by clicking on an entity or group first and then a part of the cube it'll zoom in onto that entity or group.

enter image description here

Is there a way to do that programmatically with C#? I want my code to be able to select an entity based on a passed ObjectId and then zoom into it from the top-left-front corner.

1

There are 1 answers

2
Ognyan Dimitrov On
  1. Prompt for object
  2. Get its bounding box. Use this for guidance.
  3. Then combine with this to zoom to it.