Lube
2016-01-22 17:42 UTC
Hello guys, I hope this is the right forum for this question..
I've some problem with my add-on.. I've to reload it in order to avoid this error:
(dcl-Form-Show cordoli/cordoli 50 300)
Thanks for support!
fred_tomke
2016-01-27 08:44 UTC
Hi, Lube, sorry for the late answer.
This error only occurs if your project is not loaded or the name of your form does not match to the variable.
There's no other reason.
Regards, Fred
Lube
2016-01-29 14:30 UTC
Hello!
Well it's strange..
I have two programs made with OpenDCL in autoload
And now a video about the problem:
{2}
As you can see it works only when i reload it, and when i do that the other one stops working ...
owenwengerd
2016-01-30 22:58 UTC
I suspect that you have two different projects using the same lisp symbol names, so they are stomping on each other's lisp symbols.
Lube
2016-02-01 08:51 UTC
Hello! Thanks for your answer.. Can you help me to find the error?
(defun load-cordoli (/)
(load-project nil "cordoli") ;per distribuzione
(dcl-Form-Show cordoli/cordoli 50 300)
)
and:
(defun load-cobiax (/)
(setvar "CMDECHO" 0)
(load-project nil "Cobiax") ;per distribuzione
(dcl-Form-Show Cobiax/Main)
(vl-cmdf "._undefine" "cancella")
(vl-cmdf "._undefine" "_delete")
(vl-cmdf "._undefine" "copia")
(vl-cmdf "._undefine" "_copy")
(setvar "CMDECHO" 1)
)
In must be there, right?
owenwengerd
2016-02-01 13:31 UTC
Lisp symbol names are defined in the .odcl file by specifying the form or control's
{2} property.
Lube
2016-02-01 14:23 UTC
but all the var name are empty.. so it will be // and the project is diffent ("cobiax" and "cordoli")
mmh.. maybe i din't get it :(
Lube
2016-02-08 09:34 UTC
Ok, I fixed it!
The problem was the line "load-project". The function name was the same for two different content!
Thanks :)