Recent posts

#1
Runtime/AutoLISP / Re: Error in dcl_form_show and...
Last post by velasquez - 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
#2
Runtime/AutoLISP / Re: Error in dcl_form_show and...
Last post by owenwengerd - 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.
#3
Runtime/AutoLISP / Error in dcl_form_show and vl-...
Last post by velasquez - 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?
#4
Runtime/AutoLISP / Re: Create Controls on Initial...
Last post by ScottBolton - March 25, 2026, 02:01:49 AM
OK. Thanks for the response, Owen.
#5
Runtime/AutoLISP / Re: Create Controls on Initial...
Last post by owenwengerd - March 24, 2026, 09:05:56 PM
I don't think there is any way to dynamically create controls. You can turn them on and off, but for dynamic layouts you'll need to either have them pre-created (for example, a form could have 100 of them at 0,0, all hidden, then you move and show them at runtime) or you can use a List or Grid control and add your dynamic controls to the grid cells.
#6
Runtime/AutoLISP / Create Controls on Initialise
Last post by ScottBolton - March 24, 2026, 08:26:12 AM
Hi, chaps.
I know how to modify existing control properties via lisp, but is it possible to create NEW controls and assign events to them? Something like:

(setq Y 20)
(foreach control '("CheckBox1" "CheckBox2" "CheckBox3")
(dcl-Control-Create control (list 50 Y)) ; < create this control at a specified coordinate
(dcl-Control-SetOnClick control (runthisroutine)) ; assign an event
(setq Y (- Y 20)) ; change the Y coordinate of the next control
)
#7
Runtime/AutoLISP / Re: ODCL for 2027?
Last post by kenkrupa - March 11, 2026, 08:25:24 AM
OK - thank you Owen.
#8
Runtime/AutoLISP / Re: ODCL for 2027?
Last post by owenwengerd - March 11, 2026, 06:56:42 AM
I will work on it as soon as I'm able to download the ARX 2027 SDK.
#9
Runtime/AutoLISP / ODCL for 2027?
Last post by kenkrupa - March 10, 2026, 08:36:18 AM
Any expectations on when available?
#10
Runtime/AutoLISP / Re: Why doesn't work? sorry fo...
Last post by domenicomaria - January 29, 2026, 12:29:59 AM
who added this ".lsp" ?