VvierA Posted November 9, 2012 Share Posted November 9, 2012 Hello, another little problem. I try to make a custom PIO that displays the y coordinate of the PIO as some kind of custom made level tool. I'd like the text size to be set by the standard setting in the standard 'Text' menue of Vectorworks. So I tried to retrieve the setting with: textsizeR := GetPrefReal(57); But it fails: no matter what text size is selected it shows 48401.111 if I use message(textsizeR); VvierA P.S Even better I would like the text to behave like a dimension text. Showing the unit mark and the number of decimals according to the settings in the general units menue of Vectorworks. Is this possible? Quote Link to comment
Vectorworks, Inc Employee klinzey Posted November 9, 2012 Vectorworks, Inc Employee Share Posted November 9, 2012 To get all of the text in the object to use the standard text menu use the call: SetObjectVariableBoolean(800,True); To get the a value to display a dimension use Num2StrF() Quote Link to comment
Hippocode Posted November 12, 2012 Share Posted November 12, 2012 (edited) AlrtDialog(concat(((GetPrefReal(57)/GetLScale(GetLayer(oh))) * 72) / 25.4)); Try this to get the fontsize if needed, it should work. source: GetTextSize SetObjectVariableBoolean(oh,800,TRUE); worked great but it also changes the dimensions Edited November 12, 2012 by hippothamus 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.