I see the viewport scale set to 1:1. My mistake, I should have clarified that I want to set the overall sheet scale to 1:1 and not change the viewports.
Thanks for the info. I will work with what you have shown.
Simply:
On the line before '(foreach layer lstLayers... ' write
(if (=
(cdr (assoc 62 (tblsearch "layer" (getvar "CLAYER"))))
(setq color (vlax-get-property eo "layer"))
)
(setq color " bylayer")
)
And then, on the line:
'(command "color" "bylayer")'
replace "bylayer" with 'color'.
Like That
(command "color" color)