I have a lisp where I change the line width and color of a layer and activate "lwdisplay":
(setq LD (entget (tblobjname "LAYER" freistelllayer))
lst_alt (assoc 370 LD)
farbe_alt (assoc 62 LD)
)
(setq ld (subst (cons 62 freistellfarbe) (assoc 62 LD) LD))
(entmod ld)
(setq ld (subst (cons 370 freistelldicke) (assoc 370 LD) LD))
(entmod ld)
(setvar "lwdisplay" 1)
It works fine, all settings are done and displayed in the layer-dialogue. The elements on the layer changed their color and hte button for "linewidth" is pressed.
But - the elements on the modified layer are not displayed with their linewidth. I tried something -
These actions did not change anything:
regen
regenall
redraw
draw new line
"display linewidth" - on - off - on - ...
change "current linewidth" to something and draw
???
But these actions did activate the linewidth:
change the layout (model - layout - model)
click on the layer-pulldown-list
(command "_-layer" NIL)
_-layer ESCAPE
select and change something in the layer-dialogue
(setvar "clayer" (getvar "clayer"))
???
Although the last way "(setvar "clayer" (getvar "clayer"))" would solve the problem I'm not happy with it (here in .NET was a similar psoting:
http://www.theswamp.org/index.php?topic=43954)
Any ideas to make it better?