Zoom into a point via scripting

I have the coordinates of a point I want to zoom into in the Active View via scripting. I can do this via the GUI by creating a point, selecting that point, and clicking Fit Selected. I cannot find a similar method in the Maxwell Scripting Guide. I found oEditor.ZoomToFit() but I am struggling figuring out how it works and I'm not even sure if it would do what I want to do.

Answers

  • M
    M Member, Employee Posts: 256
    50 Answers 100 Comments 100 Likes Second Anniversary
    ✭✭✭✭

    Zoom to fit should fit the displayed model to the graphics window (close fit).
    If you have a specific point you need show, you will have to try using some of the more exact graphics and camera apis. But you can record them in the ACT editor and then tune it to your specific point/need.