Hello,
I am trying to reload every linetype automaticly when I open a drawing according to the drawing measurement units.
The two first line (insunits and snapunit) work flawlessly, however the reload linetype doesn't work.
Any workaround?
(cond ((= (getvar "MEASUREMENT") 0) ;MEASUREMENT=0 (inches)
(setvar "insunits" 1)
(command "snapunit" "12,12")
(command "._linetype" "_load" "*" "acad" "")
)
((= (getvar "MEASUREMENT") 1) ;MEASUREMENT=1 (millimeters)
(setvar "insunits" 4)
(command "snapunit" "300,300")
(command "._linetype" "_load" "*" "acadiso" "")
)
) ;_ cond