![]() The book is very clearly laid out, easy to read, and ramps up difficulty at a very mild pace. this is just illustrating that i may in fact be able to get all of this stuff into a single service.As someone who has written several thousand lines of AppleScript, including a single application clocking in at over 3000 lines by itself, I cannot recommend Applescript 1-2-3 enough. I left some of the other stuff out of this post (determining paper orientation etc.). then, when ok is pushed, the script continues along (well, in this case, it just show which numbers were pulled from the page setup. It lets the user update their paper size while the script is still running and updating the variables according to the user's latest selection. Set psz to value of static text 2 of sheet 1 of window drawwin Repeat until focused of window drawwin = true Set position of window drawWin to Ĭlick menu item "page setup." of menu "file" of menu bar 1 Set WinHeight to (ScreenHeight - (22 + DKheight)) Set scsz to size of (tab group 1) of window drawWin If exists (tab group 1) of window drawWin then Set tbsz to size of (tool bar 1) of window drawWin If exists (tool bar 1) of window drawWin then see if there's a toolbar up top and if so, get it's size. do the same for scene tabs Tell application "System Events" to tell process "SketchUp" If autohide is true or screen edge is not bottom then get dock properties. if the dock is visible along the bottom then use 90 as it's height. otherwise, don't worry about the dock The dialogs are via automator which passes the paper size to the applescript. here's the script for those who can't read the. (gonna go buy a late night snack then make another post with some more info) i plan to add more features to this service which will make it even more easy to print right from sketchup. it's still super confusing but it's doable. from this point, everything else that's needed to get sketchup to print to scale on the desired amount of pages etc is available within sketchup. So that's step one in making sketchup more print friendly. i've yet to see an app or utility out there that will do this as they always resize the entire window. this is the portion Sketchup uses when determining which area to print. (actually, and more importantly, the Drawing Space within the window will be sized to your paper. The Sketchup window will then be resized to the aspect ratio of your desired paper. one asking for the Height of your paper and one asking for the Width. You will be presented with two dialog boxes. applescript for sketchup = "you're and idiot") Well, not much so far but getting to this point was pretty nuts (read- virgin script writer using applescript for sketchup. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |