GGC Posted August 6, 2019 Share Posted August 6, 2019 Does anybody know if there is a way to list the Callout PIO layer scale in a Worksheet Column? I created a Callout PIO Check List Worksheet with various fields to double check. I would like to find out what layer scale for each Callout PIO so that I can manage the text margin field value. There is no layer scale record field value for the Callout PIO as an option, nor any function available to call the layer scale from the database drop down menu. Quote Link to comment
Pat Stanford Posted August 8, 2019 Share Posted August 8, 2019 The following worksheet script should get you what you need. It returns the scale of the layer of the object in the subrow of a database section of a worksheet. Procedure GetObjectLScale; Begin WSScript_SetResReal(GetLScale(GetLayer(WSScript_GetObject))); End; Run(GetObjectLScale); Copy and paste the above into a new Vectorscript and name it GetObjectLScale. Enter a formula in your database header of =RUNSCRIPT(GetObjectLScale) It will return a number equivalent to the right side of the scale proportion i.e. 1:50 will return 48. 1/4" scale (1:48) will return 48. See my other recent post on worksheet scripts (GetPIOStyle) for information on how to make this work in different files without having to keep a copy of the script in each file. Quote Link to comment
GGC Posted August 8, 2019 Author Share Posted August 8, 2019 (edited) I managed to save the script to run in any file per your referenced post. Thank you Pat. Edited August 8, 2019 by GGC 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.