OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: mclisp on July 28, 2018, 11:33:27 PM

Title: New pc installation and copy .odcl file
Post by: mclisp on July 28, 2018, 11:33:27 PM
Hello to all

I am installing a new computer with Autocad, I have copied all the files lisp and .odcl with the same configuration of the old pc.
I have a problem, on the new pc:
the forms do not work because they change the strings function, example:
Old   pc (defun c: MCTrave1/Form1#Onnitialize   
New pc (defun c: MCTrave1_Form1_Onnitialize
Is there a way to not have to change all the lisp files?

I had already asked this question in 2016
http://opendcl.com/forum/index.php?topic=2455.msg12239#msg12239 (http://opendcl.com/forum/index.php?topic=2455.msg12239#msg12239)
and this was recommended
http://opendcl.com/forum/index.php?topic=2084.msg10309#msg10309 (http://opendcl.com/forum/index.php?topic=2084.msg10309#msg10309)
I ask if there have been any news
Thank you
Title: Re: New pc installation and copy .odcl file
Post by: Peter2 on July 30, 2018, 12:41:09 AM
Do you have the same version of OpenDCL Studio on old and new PC?
Title: Re: New pc installation and copy .odcl file
Post by: mclisp on July 30, 2018, 02:06:46 AM
thanks for the question Peter2
Yes, same operating system Window 7, same Autocad 2015, same OpenDCL Studio 8.0.2.0.
Title: Re: New pc installation and copy .odcl file
Post by: Peter2 on July 30, 2018, 08:01:02 AM
So maybe you don't have the same Lisp?

If you have same OS, same ODCL, same AutoCAD and same Lisp - where does the other "defuns" are coming from? The Lsp-files does not change by itself ???
Title: Re: New pc installation and copy .odcl file
Post by: mclisp on July 30, 2018, 08:11:55 AM
hi, read here this is a known problem

http://opendcl.com/forum/index.php?topic=2455.msg12239#msg12239 (http://opendcl.com/forum/index.php?topic=2455.msg12239#msg12239)

http://opendcl.com/forum/index.php?topic=2084.msg10309#msg10309 (http://opendcl.com/forum/index.php?topic=2084.msg10309#msg10309)
Title: Re: New pc installation and copy .odcl file
Post by: mclisp on July 31, 2018, 09:41:48 PM
Hi
I wonder why copying files .lip and .odcl from pc to pc. the symbols  "/ #" change?

Old PC  (defun c: MCTrave1 / Form1 # Onnitialize
New PC (defun c: MCTrave1_Form1_Onnitialize
Thank you
Title: Re: New pc installation and copy .odcl file
Post by: Peter2 on August 01, 2018, 04:36:02 AM
So the pure "copy to PC job" changes the files from new version (with / and #) to the old version (with _)??

When files are changed without user-commands then it is

- a virus
- an automated, but forgotten job
- an user-error (confusion of the files)

But I suppose that it is none of the three possibilities ..

Can you create a video which shows all the stuff: the file content before - the copy-action - the file content after
Title: Re: New pc installation and copy .odcl file
Post by: roy_043 on August 01, 2018, 04:42:52 AM
The only possible explanation that I see is that the new PC is running an older ODCL runtime.
Maybe the OP should check with:
(dcl_GetVersion)
This should work on both computers as the current ODCL runtime still supports function names with '_' AFAIK.
Title: Re: New pc installation and copy .odcl file
Post by: mclisp on August 01, 2018, 10:06:59 AM
Hi
if I type (dcl_GetVersion)
The answer is 8.0 on all two PCs.....

I had already had this inconvenience
2 years ago, I changed all the functions manually.
Now they are some more and it is a big job.

But it does not happen to you?
Thank
Title: Re: New pc installation and copy .odcl file
Post by: roy_043 on August 01, 2018, 11:11:46 AM
My experience is that old code works with recent version of the ODCL runtime without any modifications.

I believe the beginners tutorial has not been updated, so you might test this with those files.

Or you can use this code that I have posted in 2013:
http://opendcl.com/forum/index.php?topic=1946.0
Title: Re: New pc installation and copy .odcl file
Post by: khann on August 01, 2018, 07:46:05 PM
Yes, like roy_043
I also use old type codes with new types without any modifications.
:)
Title: Re: New pc installation and copy .odcl file
Post by: mclisp on October 10, 2018, 03:29:39 AM
Ciao
sorry if I resume the discussion after a long time
but I was very busy.

@Roy_03 I explained myself badly I apologize.
Files do not replace symbols / and # etc.

Opendcl wants different symbols on the two PCs.

An example of the same function:

On the old PC this works (defun c: MCTrave1_Form1_ComboBox3_OnSelChanged)

On the new PC works this (defun c: MCTrave1/Form1/ComboBox3#OnSelChanged)

I have to replace the symbols _ / #

What can I do to prevent this from happening?
thanks
Title: Re: New pc installation and copy .odcl file
Post by: roy_043 on October 10, 2018, 05:27:04 AM
@mclisp:
The symptoms in your last post are different from those in your first post. This makes diagnosing the problem difficult. Please post the relevant files (ODCL + LSP).

EDIT: Have you preformed tests with the projects mentioned in reply #9?