Is there a command to open and convert V2.3 binary libraries from the script engine?
I have tried to run 'projects.open("c:\oldlib.lib")', but I get:
[INFORMATION] convert.py(2): Begin of script [INFORMATION] convert.py(2): proj = projects.open("c:\oldlib.lib") [INFORMATION] convert.py(2): exception (<type 'exceptions.exception'="">, Exception('not a zip file',), None) [INFORMATION] convert.py(2): proj = projects.open("c:\oldlib.lib") [INFORMATION] convert.py(2): exception (<type 'exceptions.exception'="">, Exception('not a zip file',), None) [INFORMATION] convert.py(2): proj = projects.open("c:\oldlib.lib") [INFORMATION] convert.py(2): Return from script [INFORMATION] convert.py(2): proj = projects.open("c:\oldlib.lib")</type></type>
I know this was a long shot because the documentation says nothing about converting... Only opening:
IExtendedObject<iscriptproject> open(
string path,
string password,
bool primary
)</iscriptproject>
I am using CoDeSys V3.4 SP3 Patch 1.
Best regards,
Frank Jepsen
kk-electronic a/s
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-06-07
Originally created by: M.Schaber
Hi,
Currently, there is no such command.
This feature is already on our TODO list, but we do not have any planned release date yet.
Markus
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Is there a command to open and convert V2.3 binary libraries from the script engine?
I have tried to run 'projects.open("c:\oldlib.lib")', but I get:
[INFORMATION] convert.py(2): Begin of script
[INFORMATION] convert.py(2): proj = projects.open("c:\oldlib.lib")
[INFORMATION] convert.py(2): exception (<type 'exceptions.exception'="">, Exception('not a zip file',), None)
[INFORMATION] convert.py(2): proj = projects.open("c:\oldlib.lib")
[INFORMATION] convert.py(2): exception (<type 'exceptions.exception'="">, Exception('not a zip file',), None)
[INFORMATION] convert.py(2): proj = projects.open("c:\oldlib.lib")
[INFORMATION] convert.py(2): Return from script
[INFORMATION] convert.py(2): proj = projects.open("c:\oldlib.lib")</type></type>
I know this was a long shot because the documentation says nothing about converting... Only opening:
IExtendedObject<iscriptproject> open(
string path,
string password,
bool primary
)</iscriptproject>
I am using CoDeSys V3.4 SP3 Patch 1.
Best regards,
Frank Jepsen
kk-electronic a/s
Originally created by: M.Schaber
Hi,
Currently, there is no such command.
This feature is already on our TODO list, but we do not have any planned release date yet.
Markus
Hi Markus,
Thanks for the quick answer. Not the answer I hoped for, but glad that the feature is on your TODO.
// Frank
Hi,
Just to help other people who are looking for it. In V3.5 Patch 3 the following command will do the conversion from V2.3 to V3 library for you:
Regards,
Frank