设置当前颜色:
- (if
- (setq color (acad_truecolordlg (cons 62 0)))
- (setvar "CeColor"
- (cond ((setq c (cdr (assoc 420 color)))
- (strcat "RGB:"
- (itoa (lsh (lsh (fix c) 8) -24))
- ","
- (itoa (lsh (lsh (fix c) 16) -24))
- ","
- (itoa (lsh (lsh (fix c) 24) -24))
- )
- )
- (t (itoa (cdr (assoc 62 color))))
- )
- )
- )
|