@Tig and Chris,
I had a play using view.vpwidth and .vpheight but don't understand why it doesn't work, I ran this code on the same drawing with and without a 'Camera' view and thought it might show you if Mac's handle things differently, or not.
I thought using the second set of co-ords to output a file would work, but I'm doing something wrong so I'll leave that off this post.
[code] > view = Sketchup.active_model.active_view
# Determine the size of the design window
h = view.vpheight.to_s
w = view.vpwidth.to_s
puts "Window dimensions; " + w + ", " + h
# Display the locations of the four corners
puts "Upper left; " + view.corner(0)[0].to_s + ", " +
view.corner(0)[1].to_s
puts "Upper right; " + view.corner(1)[0].to_s + ", " +
view.corner(1)[1].to_s
puts "Bottom left; " + view.corner(2)[0].to_s + ", " +
view.corner(2)[1].to_s
puts "Bottom right; " + view.corner(3)[0].to_s + ", " +
view.corner(3)[1].to_s
# Show the location of the window's center
center = view.center
puts "Center; " + center[0].to_s + ", " + center[1].to_s
# Screen coordinates
origin = view.screen_coords [0,0,0]
puts "Origin; " + origin[0].to_f.to_s + ", " + origin[1].to_f.to_s
Window dimensions; 1924, 1089
Upper left; 0, 0
Upper right; 1924, 0
Bottom left; 0, 1089
Bottom right; 1924, 1089
Center; 962, 544
Origin; 579.166591415118, 705.802307848725
nil
> view = Sketchup.active_model.active_view
# Determine the size of the design window
h = view.vpheight.to_s
w = view.vpwidth.to_s
puts "Window dimensions; " + w + ", " + h
# Display the locations of the four corners
puts "Upper left; " + view.corner(0)[0].to_s + ", " +
view.corner(0)[1].to_s
puts "Upper right; " + view.corner(1)[0].to_s + ", " +
view.corner(1)[1].to_s
puts "Bottom left; " + view.corner(2)[0].to_s + ", " +
view.corner(2)[1].to_s
puts "Bottom right; " + view.corner(3)[0].to_s + ", " +
view.corner(3)[1].to_s
# Show the location of the window's center
center = view.center
puts "Center; " + center[0].to_s + ", " + center[1].to_s
# Screen coordinates
origin = view.screen_coords [0,0,0]
puts "Origin; " + origin[0].to_f.to_s + ", " + origin[1].to_f.to_s
Window dimensions; 1924, 1089
Upper left; 0, 135
Upper right; 1924, 135
Bottom left; 0, 954
Bottom right; 1924, 954
Center; 962, 544
Origin; 285.625823583734, 829.482222498574
nil
[/code]