It struck me when you said that it wasnt a global value, that i should do the evaluating when the "coninue" button is clicked and then leave the form. You got me thinking.i assumed (my bad) that once a form was left that the values of the buttons were kept and could be evaluated in the module.and that was the second assumtion.that i had to do the evaluating in the module. 'titleblock24x36 is empty which evaluates to false
I personally like to dim all my vars This lets me know what the value is up front so I can code without assumtions. My syntax is most likely off it's been a while since I've done lisp (defun C:A (/ cmdITB) cmdITB is local only In reality though it is a local var in 2 areas. The var cmdITB is being used as a global var. I would normally reverse the statements to be FALSE and TRUE The above TRUE and FALSE i changed and got the results i wanted.
So heres the thing.if a radio (option) button is selected (value set to true), upon exiting from the form, will it be TRUE or FALSE.? i thought if its selected it would be TRUE.(am i wrong). THEN its checks to see if titleblock24x36 is false (which it isnt) and it inserts the block (which it shouldnt). my code checks to see if its true, if it is, its supposed to go to the end.but it doesnt it creates and sets my layer to XR-TITLE. if the button is clicked, cmdITB is set to true. NOW.two condition statements are working in EXACTLY OPPOSITE of what i would expect. If titleblock24x36 = False Then ThisDrawing.SendCommand "-insert "