Aftertouch Posted May 25, 2023 Posted May 25, 2023 Hi all, Got something special.... AutoCAD 2023: (Setq layoutwidth 1189.0) (rtos layoutwidth 2 2) "1189.00" AutoCAD 2024: (Setq layoutwidth 1189.0) (rtos layoutwidth 2 2) "1189" Is this some kind of variable im missing... or is AutoCAD2024 broken? Quote
Tharwat Posted May 25, 2023 Posted May 25, 2023 There are system variables control the form of the outcome. From help document: Remarks The rtos function returns a string that is the representation of number according to the settings of mode, precision, and the AutoCAD UNITMODE, DIMZIN, LUNITS, and LUPREC system variables. The mode and precision arguments correspond to the AutoCAD LUNITS and LUPREC system variables. If you omit the arguments, rtos uses the current settings of LUNITS and LUPREC. Quote
Aftertouch Posted May 25, 2023 Author Posted May 25, 2023 @Tharwat Hi Tharwat, Ive been looking into all settings, but cannot find the solution. Also, in the properties window, the 'SCALE' for example doenst down 1.00, but just 1. I use the same installment for AutoCAD 2022, 2023 and 2024, and only 2024 shows this problem. Quote
Tharwat Posted May 25, 2023 Posted May 25, 2023 Hi to you too. The suppression of the scale in properties palette is related to LUPREC system variable but for RTOS function , you can change the system variable DIMZIN to zero then convert the to string then return it back. Quote
Aftertouch Posted May 25, 2023 Author Posted May 25, 2023 @Tharwat Hi Tharwat, DIMZIN was the problem. When i checked it, it was at '8', wich i assumed was a precision, but its a mode... Learned something again! Quote
Tharwat Posted May 25, 2023 Posted May 25, 2023 Yeah, the DIMZIN is the supervisor for the RTOS function conduct along with LUPREC , and you can review the quite many options that the DIMZIN variable has. 1 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.