does anyone know the exact differences (regarding the content) between IScriptObjekt.export_xml and IScriptObjekt.export_native ?
One method uses the PLCopen XML format and the other the CODESYS native XML format.
- with export_xml there it always says that the set and get accessors are not exportable
Maybe they are not part of the PLCopenXML specification. I haven't read the specification.
- with export_xml the programm alsways finds the unique numbers several times in different files
I think some objects can't be exported without their parent object. Have you tried to export the whole project in one file?
So the question is, what objects do I have to export with export_xml to get all the written code from the Project ?
If you use CODESYS version V3.5 SP6 or newer and the relevant code is only in ST you could use the interface IScriptTextualObjectMarker to find the relevant objects and with the interface IScriptTextDocument of these objects you could manipulate the ST code directly.
Check out the CODESYS store: http://store.codesys.com/CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions