mirror of
https://github.com/storytold/cadcraft.git
synced 2026-10-30 22:06:49 -06:00
* LISP: getvar and setvar take angle variables in radians CADCraft keeps ANGBASE, SNAPANG, POLARANG, HPANG, CHAMFERD and DIMJOGANG in degrees as far as sysvars::get/set go, which is right for the SETVAR command, but AutoLISP's getvar returned those degrees and setvar took them: (getvar "DIMJOGANG") gave 45.0, and (setvar "ANGBASE" (/ pi 2)) set 1.57 degrees. AutoCAD 2024 gives and takes them in radians from AutoLISP: each set to 30 by SETVAR, or to (/ pi 6) by setvar, reads 0.5235987755982987. The LISP bridge now converts these six; the SETVAR command is unchanged. getangle_is_relative_to_angbase sets ANGBASE in radians accordingly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * SETVAR: keep real dimension variables real A dimension variable whose style field is a real (DIMJOGANG, DIMSCALE and the other real DIM* fields) is now stored as a real header value, even when the first value set is a whole number. SETVAR DIMJOGANG 45 followed by (setvar "DIMJOGANG" 0.5) no longer rejects the fractional degrees the radian value gives. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * SETVAR: store the value the dimension style took A real dimension variable now stores the value its style field took after validation, so any input the style accepts (true for DIMSCALE gives 1) is stored as it was before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>