OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: HSaias on June 22, 2013, 08:15:34 PM

Title: Text box "REAL" type
Post by: HSaias on June 22, 2013, 08:15:34 PM
There are several type options (filters) to format a text object.
One that is missing is a REAL (nmbr of decimals).

The closest thing is "Numeric Units Filter", but the number of decimals depends on AutoCAD's DIMZIN.
In any case, probably this dependence would work better connected to the UNITS's precision variable.
Title: Re: Text box "REAL" type
Post by: Fred Tomke on June 22, 2013, 09:55:23 PM
Hi, you're welcome. Since you have to convert the value to string manually before assigning, you have the full control. I prefer to set luprec and dimzin at the beginning of the subroutine to use with rtos and reset them at the end.

Regards, Fred
Title: Re: Text box "REAL" type
Post by: HSaias on June 24, 2013, 12:00:14 PM
I will do just that.

For a matter of consistency, since all other data types have a specific filter, I will take this one to the wishlist.

Thanks.

Quote from: Fred Tomke on June 22, 2013, 09:55:23 PM
Hi, you're welcome. Since you have to convert the value to string manually before assigning, you have the full control. I prefer to set luprec and dimzin at the beginning of the subroutine to use with rtos and reset them at the end.

Regards, Fred