TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Visual DCL Programming => Topic started by: Prickle Farmer on October 26, 2015, 11:36:56 PM

Title: Emulate the Color command with DCL
Post by: Prickle Farmer on October 26, 2015, 11:36:56 PM
Is anyone aware of a DCL to emulate the Select Color dialog (index Color tab only) that comes up when the Color command is issued?  Why is there not a getcolord lisp command similar to the getfiled command.  This would be a handy interface tool but its a mountain of work to attempt.
Title: Re: Emulate the Color command with DCL
Post by: Kerry on October 27, 2015, 12:26:12 AM

Try

Code - Auto/Visual Lisp: [Select]
  1. (setq theColorIWant (acad_colordlg 42) )

or

Code - Auto/Visual Lisp: [Select]
  1. (setq theColorIWant (acad_truecolordlg 42) )
Title: Re: Emulate the Color command with DCL
Post by: Prickle Farmer on October 27, 2015, 12:51:08 AM
Awesome!!! :-) :-) :-) :-) :-) :-) :-)
I sure that wheel had been invented just couldn't find it.

Thanks Kerry