2014-11-12 22:34 UTC
Hello,
I created a variable when the last drawing was closed with OnEnteringNoDocState.
When a new design is created an error happens when I work with this variable.
The file "OpenDCL arx ....." has not yet been reloaded.
error: no function definition: dcl_Form_Show
How to check the load arx file to move forward?
I'm working with the code below.
;;;the last drawing was closed
(defun c:dc_MainMenu_cBarMax_OnEnteringNoDocState (/)
(vl-bb-set 'JoyFormName 'dc_MainMenu_cBarMax)
(dcl_Form_Close dc_MainMenu_cBarMax)
)
;;;new design is created
(if (vl-bb-ref 'JoyFormName)
(progn
(dcl_Form_Show (eval (vl-bb-ref 'JoyFormName)))
(vl-bb-set 'JoyFormName NIL)
) ;_ fim de progn
) ;_ fim de if
I created a variable when the last drawing was closed with OnEnteringNoDocState.
When a new design is created an error happens when I work with this variable.
The file "OpenDCL arx ....." has not yet been reloaded.
error: no function definition: dcl_Form_Show
How to check the load arx file to move forward?
I'm working with the code below.
;;;the last drawing was closed
(defun c:dc_MainMenu_cBarMax_OnEnteringNoDocState (/)
(vl-bb-set 'JoyFormName 'dc_MainMenu_cBarMax)
(dcl_Form_Close dc_MainMenu_cBarMax)
)
;;;new design is created
(if (vl-bb-ref 'JoyFormName)
(progn
(dcl_Form_Show (eval (vl-bb-ref 'JoyFormName)))
(vl-bb-set 'JoyFormName NIL)
) ;_ fim de progn
) ;_ fim de if