Hi (again),
Little update.
I've split my code in 2 different LISP's. (1 with the dialogbox and language selection and 1 with the command to clear attributes of a block, the custom command is now automatically loaded when a drawing opens)
Everything works every time except for 1 thing:
Because there are now 2 scripts, I need to store the users input in a "global" variable.
In my "MAIN"-lisp I wrote the following things.
When the user presses the OK button this is what happens:
Code:
(action_tile
"accept" ;if O.K. pressed
(strcat ;string 'em together
"(progn
(setq selected_language (atof (get_tile \"selections\")));get list selection
(setq DELV (get_tile \"drawn\")) ;store value of drawn in variable DELV
(setq VERIF (get_tile \"verified\")) ;store value of verified in variable VERIF
(setq APPR (get_tile \"aproved\")) ;store value of aproved in variable APPR
(val1)(setq userclick T))" ;check fields, set flag
)
2 questions:
- Is it possible that after the execution of the function, the values of the variables are set to NIL?
- Can you use a variable from one LISP in another LISP? If yes, what's the best way to do this?