(defun ads:LoadArx (Lst Arch Msg / fl res)
(setq fl "")
(foreach % Lst
(cond
( (= % "/v/") (setq fl (strcat fl (substr (getvar "ACADVER") 1 2))) )
( (= % "/a/") (setq fl (strcat fl "/a/")) )
( T (setq fl (strcat fl %)) )
)
)
(if Msg
(if
(not
(vl-catch-all-error-p
(vl-catch-all-apply
(quote arxload)
(list
(if (= (getenv "PROCESSOR_ARCHITECTURE") "x86")
(setq res (vl-string-subst (car Arch) "/a/" (strcat fl ".arx")))
(setq res (vl-string-subst (cadr Arch) "/a/" (strcat fl ".arx")))
)
)
)
)
)
(princ (strcat " -> Loaded: " res))
(princ (strcat " -> Error loading: " res))
)
)
)
(ads:LoadArx (list "DOSLib" "/v/" "/a/") (list "" "x64") T)
(ads:LoadArx (list "OpenDCL" "/a/" "." "/v/") (list "" "x64") T)
(ads:LoadArx (list "SQLiteLsp" "/v/" "/a/") (list "x32" "x64") T)
Arguments:(ads:LoadArx (list "OpenDCL" "/a/" "." "/v/") (list "" "x64") T)
in Autocad 2010 program load file:(= (getenv "PROCESSOR_ARCHITECTURE") "x86")
(<= (strlen (vl-prin1-to-string (vlax-get-acad-object))) 40)
Your users may use 32-bit AutoCAD on 64-bit Windows.
You should replace your platform test codeCode: [Select](= (getenv "PROCESSOR_ARCHITECTURE") "x86")
withCode: [Select](<= (strlen (vl-prin1-to-string (vlax-get-acad-object))) 40)
is there any way to improve more code below ?
is there any way to improve more code below?
You should replace your platform test code
You are mistaken.
Owen thanks for infois there any way to improve more code below ?
For OpenDCL Runtime you should use the demand-load registry keys and simply (command "_OPENDCL").
Hi Mr.kruugeryou can get it here
Can you sharing your runtine load DOSLib.arx ?
Hi Mr.kruugeryou can get it here
Can you sharing your runtine load DOSLib.arx ?
http://www.rhino3d.com/download/none/none/doslib
k.
just enter your email and click next.Hi Mr.kruugeryou can get it here
Can you sharing your runtine load DOSLib.arx ?
http://www.rhino3d.com/download/none/none/doslib (http://www.rhino3d.com/download/none/none/doslib)
k.
Thanks Mr.kruuger
But I can't open this link.