Tutorial lsp erros

Started by cadguy1685 · 2009-11-22 23:53 UTC · 3 replies · SMF topic #1022

Hello all,

I'm a total OPDCL Newb but looking forword to learning this.  Anyways I'm having a problem with the _masterdem.lsp. this is the error I get.

Command: (LOAD "C:/Program Files/OpenDCL Studio/ENU/Samples/_MasterDemo.lsp")
OPENDCLDEMO
Unknown command "OPENDCL".  Press F1 for help.
; error: An error has occurred inside the *error* functionno function
definition: DCL_FORM_ISACTIVE


any ideas?
You must first install the OpenDCL Studio MSI file on your computer. End users of your program will need to install the OpenDCL Runtime MSI file.


If you have met the suggestion posted by Owen, and still have problems ;

Please advise if you have the Studio Editor or the Runtime Installed ?  ( must be one or the other )

which version is installed ?

run this Lsp code (command TESTIT ) and advise result.


(defun c:TestIt (/ odcl_arxpath)
 (vl-load-com)
 (princ (strcat "\n   Demand Load Setting :"
                (itoa (getvar "demandload"))
                "\n"
        )
 )
 (setq
   odcl_arxpath (vl-registry-read (strcat "HKEY_LOCAL_MACHINE\\"
                                          (vlax-product-key)
                                          "\\Applications\\OpenDCL"
                                  )
                                  "Loader"
                )
 )
 (princ
   (strcat "\n   ArxPath : " (VL-PRINC-TO-STRING odcl_arxpath) "\n")
 )
 (princ)
)


ps:
Welcome to the Forum :)
Well this is what I did.  I originally installed the OpenDCL studio first.  I didn't have AutoCAD installed on this laptop as I was not home at the time.  I later insallted AutoCAD2009 and tried the lisp and got the error.  I did read the first post and I new for sure I installed the Studio version first.  So i just decided to run the msi file again and do a "repair".  This seems to have fixed the problem.