Brian Foust Posted June 27, 2007 Share Posted June 27, 2007 Does anyone know of a script, or how I might write one, that would change the drawing size by 50%. Quote Link to comment
Guest Posted June 27, 2007 Share Posted June 27, 2007 Why not just use the Scale menu (under Modify) and check mark "Entire Drawing" and use a value of .5 ? Or is this for printing purposes only? Quote Link to comment
Brian Foust Posted June 27, 2007 Author Share Posted June 27, 2007 Yes this is for printing only. It is common for me to print at drawing at 100% and then have to print a 50% drawing later. It takes several setps to change the scale of a drawing for printing. I am hoping to get a faster way to do this. Quote Link to comment
Guest Posted June 27, 2007 Share Posted June 27, 2007 There's a printing option to print at 50% - are you looking for a script to automate this? Quote Link to comment
Brian Foust Posted June 27, 2007 Author Share Posted June 27, 2007 I didn't know about that feature. I'll check this out. Although I would like to take a shot at automating this with a script. Quote Link to comment
MullinRJ Posted June 28, 2007 Share Posted June 28, 2007 Try:??SetPrefReal(70, 2);??????{ = 50% } or:????SetPrefReal(70, 0.5); ??{ = 200% } One scales down, the other up. It's a 1/x thing so guessing may be required. One of them should work. Pref 70 is the "Page Scaling Factor ". It changes the elusive printing scale factor found in: Page Setup > Printer Setup... (button) > Settings: VectorWorks (popup menu) > Scaling: xxx % I've done it manually, but never by script (until tonight). Don't forget to set it back to 1 when you're done or you'll swear something's broken the next time you try to print. I don't know if it is document specific or works application wide. I assume the latter, but don't get me to lying. I also don't know if it resets to 1 (100%) when VW is relaunched. You'll have to play with it. Write back when you figure it out. Raymond Quote Link to comment
Brian Foust Posted June 28, 2007 Author Share Posted June 28, 2007 Great that works fine, although I changed the second line to be able to go from 50% back to 100% SetPrefReal(70, 1); { = 100% } Is there a way to change the page size too? At 100% my page size is 30"x42", and at 50% its 18"x24" Also where can I get a list that shows all the Pref's and #'s? I looked all over help and couldn't find it. Thanks I'm new to vector scrips, it'a a little confusing Quote Link to comment
PeterT Posted June 29, 2007 Share Posted June 29, 2007 The Pref #'s are shown in the VectorScript Appendix, appendix F. Here is a link: http://softwarecustomizationservices.com/Other/VSFR/Appendix/appendix.html#appx_f Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.