Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
This code snippet will change a given cell BG color to white, but how do I change it to green? I can't sort out where the color code is being defined. The "acm" variable holds: #<VLA-OBJECT IAcadAcCmColor 0000021676ef03a0> and changes each time I run it.
How would I set it to Green or Red?
(setq acm
(vla-getinterfaceobject
(vlax-get-acad-object)
(strcat "autocad.accmcolor." (substr (getvar 'acadver) 1 2))
)
)
(vla-setcellbackgroundcolor table 2 5 acm)
AutoCad 2018 (full)
Win 11 Pro
Win 11 Pro
Solved! Go to Solution.