Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I have this wonderful code for switching the Backgroundcolor between black and grey:
(defun c:SWITCH_BACKCOLOR ( /); ANZEIGE )
(vl-load-com)
(setq Anzeige(vla-get-Display(vla-get-Preferences(vla-get-application(vlax-get-acad-object)))))
(if (= (vlax-variant-value(vlax-variant-change-type(vla-get-GraphicsWinModelBackgrndColor ANZEIGE) vlax-vbLong))0)
(progn
(vla-put-GraphicsWinModelBackgrndColor ANZEIGE 6710886)
(princ "\nHintergrund Modellbereich auf -grau- gesetzt")
)
(progn
(vla-put-GraphicsWinModelBackgrndColor ANZEIGE 0)
(princ "\nHintergrund Modellbereich auf -schwarz- gesetzt")
)
)
(princ)
)
But i'm looking for a code witch saves the original Color (for example blue) and turns back to this after i finish witch the grey one.
Please help...
Solved! Go to Solution.