whdjr, that function don't work, I did a very similiar one, but nothing happens.
CAB, the problem are my custom plot styles. ByLayer, ByBlock... and default plot styles load without problem
but finally I think, I found the answer: somebody tell me that I can load any custom plot style (with vla-put-PlotStyleName) only if before they have been loaded or applied at least once. then the function that works for me:
(defun ppsn (object stylename / cplotstyle)
(setq cplotstyle (getvar "CPLOTSTYLE"))
(setvar "CPLOTSTYLE" stylename)
(vla-put-PlotStyleName object stylename)
(setvar "CPLOTSTYLE" cplotstyle)
)
So strange to be doing that