OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Lube on August 19, 2015, 02:18:37 AM

Title: *.odcl.lsp how to use them?
Post by: Lube on August 19, 2015, 02:18:37 AM
Hello guys, I have something to ask about *.odcl.lsp.

I've search on google the answer but I didn't find it, maybe because I'm not native english.. don't know.

I want to compile all my project (7 .lsp + 1 .odlc) in one .vlx.
I know there is the possibility to create an odcl.lsp from the program save as, but what then?

If i try to start my program i get an error: "no function definition: dcl_Project_Load"

Can someone help me doing the job?

Code (autolisp) Select
(vl-load-com)
(defun C:cordoli ( / ) 
(COMMAND "OPENDCL")
  ;(DCL_PROJECT_LOAD "cordoli") ;non più in sviluppo
  (DCL_PROJECT_LOAD "cordoli" T)
  (dcl-Form-Show cordoli/cordoli 50 300)
  (vl-load-com)

 
  (PRINC)
)


Thanks guys :)
Title: Re: *.odcl.lsp how to use them?
Post by: Fred Tomke on August 19, 2015, 02:31:20 AM
Hi, please have a look at the samples (C:\Program Files (x86)\OpenDCL Studio\[your language]\Samples) and at the help (http://www.opendcl.com/HelpFiles/index.php?page=Advanced/Deployment.htm).
Regards, Fred
Title: Re: *.odcl.lsp how to use them?
Post by: Lube on August 19, 2015, 03:21:40 AM
Thanks Fred!

It seems to work in developing mode, but after compiling and running the .vlx file I get this error..

Comando: CORDOLI
You've pressed ESC! AutoCAD variable rejected: OSMODE nil

it should be something like that in English.

Code (autolisp) Select
(DEFUN C:Cordoli (/)
  (vl-load-com)
  (COMMAND "OPENDCL")
  (load-project nil "cordoli")
  (dcl-Form-Show cordoli/cordoli 50 300)
  )

(defun load-project ( password alias /)

(setq project '("YWt6Axr5BwBSj9gqBuKT etc etc" )

(dcl-project-import project password alias)
)
  )

Can you help me?


EDIT:
it seems that if i change the command name to something else it works..
C:cordoli -> C:C_Cordoli

but i need to maintain this name.. what can i do? :/