Cancel
Showing results for 
Search instead for 
Did you mean: 

Zoom to a desired object

Legend
Legend

Hello!

 

Is it possible to zoom graphic viewer to desired  ITxDisplayableObject with API or should I use the command?

And one more general question: How can I control zoom of the graphic view in PS?

 

Best regards

Witalij

3 REPLIES 3

Re: Zoom to a desired object

Pioneer
Pioneer

you can use a Command for example:

TxApplication.CommandsManager.ExecuteCommand("GraphicViewer.ViewCenter")

or

TxApplication.CommandsManager.ExecuteCommand("GraphicViewer.ZoomToFit") //not sure if this command works

Re: Zoom to a desired object

Legend
Legend
Thank you. I will try it.

Re: Zoom to a desired object

Valued Contributor
Valued Contributor

You can also try:

TxApplication.CommandsManager.ExecuteCommand("GraphicViewer.ZoomToSelection")