The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle General (http://forums.omnigroup.com/forumdisplay.php?f=10)
-   -   Global zoom level for multiple canvases (http://forums.omnigroup.com/showthread.php?t=15808)

chrishan 2010-03-29 12:42 PM

Global zoom level for multiple canvases
 
Is there a way i can change the zoom level for every canvas in a document at the same time?

Thx
Chris

Brian 2010-03-29 03:07 PM

I checked with the lead support ninja on OmniGraffle: he tells me that it's not currently possible, but we do have a feature request open on that. If you send in your request [EMAIL="omnigraffle@omnigroup.com"]via email[/EMAIL], he can attach you to the request.

Requests with more customers voting for them tend to bubble up our priority list. Thanks!

jeewee00 2011-03-09 01:53 AM

Re: Global zoom level for multiple canvases
 
This still would be very usefull, but as far as I can see, there is still no solution for this. Or am I missing something here?

Brian 2011-03-09 02:39 PM

It's one of the requests we have on file in the database, but it hasn't made it's way into the app yet.

You'll want to email the support ninjas from the link in my previous post and let them know that you'd like to see this added; all other things being equal, items with more customer requests attached tend to get assigned higher priority. Hope this helps!

john.gersh 2011-03-11 10:40 AM

For the adventurous, here's an Applescript that cycles through the canvases and sets the zoom level.

Paste the script below into the AppleScript Editor, change the OG version name if necessary, and save it with File Format Script into ~Library/Scripts/Applications/OmniGraffle (or .../OmniGraffle Pro). Create that folder if it's not already there. You'll probably be asked to find the OG application. The script will then appear in the Script menu (the little scroll icon in the items on the right side of the menubar).

Choosing the script there will put up a dialog asking for a zoom level, with a default answer of the current one. It will then cycle through all the canvases and set them to that level.


tell application "OmniGraffle Professional 5"
set currentZoom to the zoom of the front window
set theDialog to display dialog "Zoom all canvases to:" default answer 100 * currentZoom
set theZoom to the text returned of theDialog
set theDoc to the document of the front window
set currentCanvas to the canvas of the front window
repeat with theCanvas in every canvas of theDoc
set the canvas of the front window to theCanvas
set the zoom of the front window to theZoom / 100
end repeat
set the canvas of the front window to currentCanvas
end tell

martoony 2013-01-24 03:07 PM

This script cycles through, but does not change zoom in Mountain Lion Omni 5

RobTrew 2013-01-24 03:22 PM

Working here on 10.8 with OmniGraffle Professional

Minor edit to ensure that a valid zoom value has been entered:

[CODE]tell application id "OGfl"
tell front window
set currentZoom to zoom
set theDialog to display dialog "Zoom all canvases to:" default answer 100 * currentZoom

try
set theZoom to the (text returned of theDialog) as number
on error
display alert "Enter a number, without a percent character"
return
end try

set theDoc to its document
set currentCanvas to its canvas

repeat with theCanvas in (every canvas of theDoc) as list
set its canvas to theCanvas
set its zoom to theZoom / 100
end repeat
set its canvas to currentCanvas
end tell
end tell[/CODE]


All times are GMT -8. The time now is 07:22 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.