Author Topic: New pc installation and copy .odcl file  (Read 1729 times)

mclisp

  • Member
  • *
  • Posts: 33
    • http://www.mcpsteel.com
New pc installation and copy .odcl file
« 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
and this was recommended
http://opendcl.com/forum/index.php?topic=2084.msg10309#msg10309
I ask if there have been any news
Thank you
« Last Edit: July 28, 2018, 11:58:46 PM by mclisp »

Peter2

  • Sr. Member
  • ****
  • Posts: 467
Re: New pc installation and copy .odcl file
« Reply #1 on: July 30, 2018, 12:41:09 AM »
Do you have the same version of OpenDCL Studio on old and new PC?
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

mclisp

  • Member
  • *
  • Posts: 33
    • http://www.mcpsteel.com
Re: New pc installation and copy .odcl file
« Reply #2 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.

Peter2

  • Sr. Member
  • ****
  • Posts: 467
Re: New pc installation and copy .odcl file
« Reply #3 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 ???
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10


mclisp

  • Member
  • *
  • Posts: 33
    • http://www.mcpsteel.com
Re: New pc installation and copy .odcl file
« Reply #5 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

Peter2

  • Sr. Member
  • ****
  • Posts: 467
Re: New pc installation and copy .odcl file
« Reply #6 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
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

roy_043

  • Sr. Member
  • ****
  • Posts: 349
Re: New pc installation and copy .odcl file
« Reply #7 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:
Code: [Select]
(dcl_GetVersion)This should work on both computers as the current ODCL runtime still supports function names with '_' AFAIK.

mclisp

  • Member
  • *
  • Posts: 33
    • http://www.mcpsteel.com
Re: New pc installation and copy .odcl file
« Reply #8 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

roy_043

  • Sr. Member
  • ****
  • Posts: 349
Re: New pc installation and copy .odcl file
« Reply #9 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

khann

  • Full Member
  • ***
  • Posts: 153
Re: New pc installation and copy .odcl file
« Reply #10 on: August 01, 2018, 07:46:05 PM »
Yes, like roy_043
I also use old type codes with new types without any modifications.
 :)

mclisp

  • Member
  • *
  • Posts: 33
    • http://www.mcpsteel.com
Re: New pc installation and copy .odcl file
« Reply #11 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

roy_043

  • Sr. Member
  • ****
  • Posts: 349
Re: New pc installation and copy .odcl file
« Reply #12 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?
« Last Edit: October 10, 2018, 10:14:51 AM by roy_043 »