For reference:
There is an issue with the built-in blocks for DIMBLK, DIMLDRBLK, DIMBLK1 and DIMBLK2 when using setvar/getvar.
From an answer to one of my BricsCAD Support Requests:
I verified in AutoCAD 2014 :
Command: (tblsearch "BLOCK" "_ARCHTICK")
nil
Command: (setvar "DIMBLK" "_ARCHTICK")
"_ARCHTICK"
Command: (getvar "DIMBLK")
"ArchTick"
Command: (tblsearch "BLOCK" "_ARCHTICK")
((0 . "BLOCK") (2 . "_ArchTick") (70 . 0) (10 0.0 0.0 0.0) (-2 . <Entity name: 7ffffb05330>))
So 2 interesting details :
- Acad creates the built-in arrow block on first need, (tblsearch) verifies this
- even when the sysvar is defines as "_ARCHTICK", Acad (getvar) returns "ArchTick", without preceding "_" underscore,
and also in programmed spelling ("CamelCase")
BricsCAD mimics this unlogical AutoCAD behavior.
My code in post #8 does not take this into account.