OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: DGCSCAD on September 11, 2024, 12:47:29 PM

Title: LISP to Load OpenDCL
Post by: DGCSCAD on September 11, 2024, 12:47:29 PM
Hi. First post here. Been a member of theSwamp for many years (deegeecees) and although I haven't used LISP much over the past 2 decades, I've been needing to get back into it recently.

I'm looking for a way to load OpenDCL on other PC's through a network via LISP.

I've put this together after some searching around, but it doesn't recognize ODCL after installing:

(defun checkodcl ()
(if (and (not dcl_project_load) (vl-cmdf "OPENDCL") (not dcl_project_load))
(progn
(startapp "msiexec.exe" (strcat "/i \"" "OpenDCL.Runtime.9.2.3.3.msi" "\""))
)
)
)

The MSI file is located in a support path, so it runs as it should. I'm not sure what I'm missing. Any help is appreciated.
Title: Re: LISP to Load OpenDCL
Post by: owenwengerd on September 11, 2024, 03:08:27 PM
You would need to restart before the new demand load registry keys are active. You could complete the install, then read the newly added demand load registry key via lisp to get the full path to the OpenDCL runtime module, then load it via (arxload).
Title: Re: LISP to Load OpenDCL
Post by: DGCSCAD on September 12, 2024, 03:59:45 AM
Quote from: owenwengerd on September 11, 2024, 03:08:27 PMYou would need to restart before the new demand load registry keys are active. You could complete the install, then read the newly added demand load registry key via lisp to get the full path to the OpenDCL runtime module, then load it via (arxload).

Ok, thank you. I appreciate help, and the fast response.