Displaying 'TextSize' Variable in a Text Box

Started by kentagordon, February 02, 2012, 03:21:03 PM

Previous topic - Next topic

kentagordon

Hello. I'm pretty new to OpenDCL but am trying gamely to build a program which (among other things) will place area labels on enclosed polylines. I've cobbled together the code that can perform this much, but I'd like to exert some control over the text size used. I have a text box for this purpose, and am using the 'EditChanged' event to trigger a text size change. What I'd like to do is display the current text size as the default value in the text box, so that the label will be written with the new text size (if changed) otherwise in the default text size shown in the box. Is it possible to display this value (AutoCAD "TextSize") in a ODCL text box? If so, how? Thanks in advance.

Fred Tomke

Hi,

just use the OnInitialize event and read the TEXTSIZE systemvariable and put it into the textbox.

Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

kentagordon

Thanks, Fred! It was far easier than I thought!