nelsonm87 Posted October 7, 2009 Posted October 7, 2009 Hi all, I'm trying to tweak previously written code to, instead of using the model text height, somehow use the paper text height. What I'm searching for is a way to either retrieve the value of the modelspace's current annotation scale and use it to calculate the model text height, or to use a property of text objects that I'm not aware of that changes the paper text height for annotative texts. Thanks in advance . Quote
nelsonm87 Posted October 8, 2009 Author Posted October 8, 2009 Maybe something along the lines of cannoscale value? Quote
nelsonm87 Posted October 8, 2009 Author Posted October 8, 2009 Alright! figured it out sngtest = ThisDrawing.GetVariable("CANNOSCALEVALUE") sngtest stores the value of the currently used annotation scale of the drawing being worked on. So from there, one can use that value to calculate the model text height. For Example, the Annotation Scale is 1:20; it will return the value .05. So, if you want Pspace text height to be .075, you would say .075/.05 = 1.5 (Mspace text height). Quote
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.