OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: juan on October 18, 2018, 06:10:31 AM

Title: ZWCAD 2019 / OpenDcl 9.02.0
Post by: juan on October 18, 2018, 06:10:31 AM
Hello, I have an application made with OpenDcl and it works perfectly in Autocad, my idea is to be able to work with it in zwcad 2019, but it gives me an error

  (dcl_Project_Load "E: PERI_Present.odcl" T)

Error: undefined function - DCL_PROJECT_LOAD


Please, can you help me

TH
Juan
Title: Re: ZWCAD 2019 / OpenDcl 9.02.0
Post by: Peter2 on October 19, 2018, 07:52:32 AM
It seems that the ARX is not loaded in ZWCAD. Please check carefully the installation and configuration that you have.
Title: Re: ZWCAD 2019 / OpenDcl 9.02.0
Post by: owenwengerd on October 19, 2018, 10:46:24 AM
I'm not sure demand loading ever worked on ZWCAD. I think they had at one time hard-coded OpenDCL to load automatically. In any case, you should be able to load the OpenDCL runtime module manually before loading your project.
Title: Re: ZWCAD 2019 / OpenDcl 9.02.0
Post by: juan on October 19, 2018, 11:50:53 PM
Thank you for your answers,
Forgive my ignorance, but what installation I have to review, zwcad or OpenDCL

this is the code of my lisp that works perfectly in autocad


(vl-cmdf "OPENDCL")
(if (not ADOLISP_ConnectToDB)
  (load
    "E:\\00Maven\\DevelopUS20323_Juan\\Web\\CentrioScafoldDesigns\\opedcl\\support\\ADOLISP_Library.lsp"
  )
)
(vl-load-com)
(dcl_Project_Load "E:PERI_Present.odcl" T)
  (dcl_Form_Show PERI_Present_PERIPRESENTACIOND)

Title: Re: ZWCAD 2019 / OpenDcl 9.02.0
Post by: Peter2 on October 20, 2018, 03:27:47 PM
As Owen said, it is possible that not your code is the problem. It seems that Zwcad does not load OpendDCL.

The line (vl-cmdf "OPENDCL") loads OpendDCL only if the load_on_demand-function exists and is defined correctly.

So I would try to
a) comment out the line (vl-cmdf "OPENDCL") in your code
b) load the needed opnedcl-arx in another way: "appload" or "arxload" or ...
c) try your lisp again
Title: Re: ZWCAD 2019 / OpenDcl 9.02.0
Post by: juan on October 21, 2018, 01:27:48 AM
Thank you very much, very grateful, loading manually works perfectly
with appload

Juan