OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: velasquez on April 10, 2026, 01:21:37 PM

Title: Error in dcl_form_show and vl-symbol-value
Post by: velasquez on April 10, 2026, 01:21:37 PM
In ZWCAD 2025/26, an error occurs when using dcl_form_show.

A variable is defined with: (vl-bb-set 'JoyFormName 'dc_MainMenu_cBarMax)
 
When I try to open the form with:

(dcl_form_show (vl-symbol-value (vl-bb-ref 'JoyFormName)))
The function fails with the error shown in the image.

The form opens this way without a problem:
(dcl_Form_Show dc_MainMenu_cBarMax)

Where is my error?
Title: Re: Error in dcl_form_show and vl-symbol-value
Post by: owenwengerd on April 10, 2026, 03:41:41 PM
The error message indicates that (vl-symbol-value (vl-bb-ref 'JoyFormName)) returned NIL, so it seems unrelated to OpenDCL.
Title: Re: Error in dcl_form_show and vl-symbol-value
Post by: velasquez on April 11, 2026, 06:20:51 AM
Olá Owen,
Verifiquei que o problema está em 'vl-symbol-value'

Por que a vriável existe :
Command: (vl-bb-ref 'JoyFormName) -> DC_MAINMENU_CBARMAX
Command: (vl-symbol-value (vl-bb-ref 'JoyFormName)) -> Nil