Gary,
What is the error message.
What does entering in opendcl at the command line do?
the command 'OpenDCL' will demand load the OpenDCL arx.
If the OpenDCL IDE or runtime is installed, the installer makes the changes to the registry to register the command.
If the ARX file is copied to be used from another folder ..
note that the C:\Program Files\Common Files\OpenDCL\ENU\
Runtime.Res.dll should be in the same folder as the ARX
[ perhaps having the \ENU folder and contents as a child to the ARX folder will work too.]
Personally, I use this defined in my Library ; and call (KDUB:checkopendclloaded) at the top of eack file that uses OpenDCL
... but just calling it from [say] a MNL file should be adequate.
;;;------------------------------------------------------------------
;;;------------------------------------------------------------------
;; (KDUB:checkopendclloaded)
(defun kdub:checkopendclloaded (/)
;; Demand load the OpenDCL.##.ARX.
;; This requires the OpenDCL Runtime or Studio to be installed on each PC first.
;; OR
;; load the ARX if found.
(cond
((= 'exrxsubr (type dcl_getversionex)))
((and
(setq arxname
(strcat
"OpenDCL"
(if
(and
(setq
proc_arch (getenv "PROCESSOR_ARCHITECTURE")
)
(< 1 (strlen proc_arch))
(eq "64"
(substr proc_arch (1- (strlen proc_arch)))
)
)
".x64."
"."
)
(substr (getvar "acadver") 1 2)
".arx"
)
)
(= 2 (boole 1 (getvar "DEMANDLOAD") 2))
(findfile
(strcat "c:\\Program Files\\Common Files\\OpenDCL\\" arxname)
)
(command "OpenDCL")
)
(if (/= 'exrxsubr (type dcl_getversionex))
(progn
(alert
"The OpenDCL Runtime module failed to load. Please repair the OpenDCL installation and try again."
)
(exit)
)
)
)
((null (setq arxpath (findfile arxname)))
(alert (strcat "Couldn't find "
arxname
".\nYou may need to add it to an Acad support path"
)
)
)
((null (arxload arxpath 'nil))
(alert (strcat "Failed to load " arxname "."))
)
(t)
)
(princ)
)
edit:
This is an
OLD thread and the load method has been refined.To Quote Owen :
The moral of the story: if everyone plays nice by installing the runtime .msi file (or the ODCL Studio Editor) , then using (command "_OPENDCL") to ensure it's loaded, there won't be any problems.
So we no longer need to jump through hoops ....