Author Topic: ZWCAD 2019 / OpenDcl 9.02.0  (Read 285 times)

juan

  • Member
  • *
  • Posts: 11
ZWCAD 2019 / OpenDcl 9.02.0
« 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
« Last Edit: October 18, 2018, 06:18:21 AM by juan »

Peter2

  • Sr. Member
  • ****
  • Posts: 466
Re: ZWCAD 2019 / OpenDcl 9.02.0
« Reply #1 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.
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 2980
    • Outside The Box
Re: ZWCAD 2019 / OpenDcl 9.02.0
« Reply #2 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.

juan

  • Member
  • *
  • Posts: 11
Re: ZWCAD 2019 / OpenDcl 9.02.0
« Reply #3 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)


Peter2

  • Sr. Member
  • ****
  • Posts: 466
Re: ZWCAD 2019 / OpenDcl 9.02.0
« Reply #4 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
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

juan

  • Member
  • *
  • Posts: 11
Re: ZWCAD 2019 / OpenDcl 9.02.0
« Reply #5 on: October 21, 2018, 01:27:48 AM »
Thank you very much, very grateful, loading manually works perfectly
with appload

Juan