*.odcl.lsp how to use them?

Started by Lube, August 19, 2015, 02:18:37 AM

Previous topic - Next topic

Lube

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 :)

Fred Tomke

Hi, please have a look at the samples (C:\Program Files (x86)\OpenDCL Studio\[your language]\Samples) and at the help.
Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Lube

#2
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? :/