Merry Christmas and Happy Holidays to all,
I have a specific use case where I am trying to set the background color of Mtext in such a way that it is white in both model and paper space. While one can set it to color 7 with the entmake, that color changes to black when switching to the paper space.
I tried to do the same thing as I did with a hatch in the same project, setting it to RGB 255, 255, 255 with ActiveX, but it seems the background fill color is either set differently or impossible to set with VLA.
My code:
(defun putText
(text centre
/ obj col ent
) )
));_entmake and setq
(vla-setrgb col 255 255 255)
(vla-put-backgroundcolor obj col)
);_defun
The problem is that the
vla-put-backgroundcolor command does not seem to work for MTEXT, and the color 255 shows up as a grey in paper space. Does anybody have an idea how I can achieve this?
Thank you,
MM