*.odcl.lsp how to use them?

Started by Lube · 2015-08-19 09:18 UTC · 2 replies · SMF topic #2298

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?

(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 :)
Hi, please have a look at the samples (C:\Program Files (x86)\OpenDCL Studio\[your language]\Samples) and at the {2}.
Regards, Fred
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.

(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? :/