2023-06-03 09:37 UTC
Hi there,
I have installed a trial version of ZWCAD2023 an I am running the latest OpenDCL ZRX runtime extension as well.
During this trial period I try to find out if my programs will run in ZWCAD.
My OpenDCL project contains a slide image, when I click on it I want something to happen.
This piece of code works:
I do get the Alert dialog which tells me the slide-on-clicked does work.
Now if I replace that code with this, then nothing happens:
If I just copy the line of actual code into the commandbar it works:
The variables "myLinetypeName" and "myCustomLinetypeFile.lin" are set properly.
Why does ObjectDCL not invoke the command?
Any ideas on this one? Thanks in advance.
I have installed a trial version of ZWCAD2023 an I am running the latest OpenDCL ZRX runtime extension as well.
During this trial period I try to find out if my programs will run in ZWCAD.
My OpenDCL project contains a slide image, when I click on it I want something to happen.
This piece of code works:
(defun c:Test/Form1/SlideView1#OnClicked (/)
(dcl-MessageBox "To Do: code must be added to event handler\r\nc:Test/Form1/SlideView1#OnClicked" "To do")
)I do get the Alert dialog which tells me the slide-on-clicked does work.
Now if I replace that code with this, then nothing happens:
(defun c:Test/Form1/SlideView1#OnClicked (/)
(command "_.linetype" "_load" "myLinetypeName" "myCustomLinetypeFile.lin" "")
)If I just copy the line of actual code into the commandbar it works:
(command "_.linetype" "_load" "myLinetypeName" "myCustomLinetypeFile.lin" "")The variables "myLinetypeName" and "myCustomLinetypeFile.lin" are set properly.
Why does ObjectDCL not invoke the command?
Any ideas on this one? Thanks in advance.