OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: pascal_dedi on December 11, 2013, 02:23:05 AM

Title: my graphicbutton repeat last command
Post by: pascal_dedi on December 11, 2013, 02:23:05 AM
Hi,
i have a Graphic Button ,
it's Beggining ok but if I'm doing what in autocad and then click the button again, repeated  last command.
Event invoke 1

(Button read a Combobox value (no Event - Event invoke 0) , 2 TextBox  value (no Event - Event invoke 0) and a chcekbox  value (clicked - Event invoke 1)

where i make error?

Title: Re: my graphicbutton repeat last command
Post by: pascal_dedi on December 11, 2013, 05:29:54 AM

I found it, when I write in this art no error then


 
;;;(command "_.color" "_bylayer" "")             -------------- repeat last command

(setvar 'CECOLOR "bylayer") ----------------------------------no error
Title: Re: my graphicbutton repeat last command
Post by: owenwengerd on December 11, 2013, 07:02:40 AM
It's not clear from your reply whether you noticed the extra "" in your (command) call. In any case, (setvar) is better.