CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Sun Dec 16, 2018 7:47 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Sep 17, 2018 9:01 am 
Offline

Joined: Tue Sep 04, 2018 7:54 am
Posts: 4
Hi,

Am using the following code to import an ".export" file type for IO_Module using scripts but getting the error "Object GUID is not valid".


----CODE----
import sys, io

system.trace = True

class Handler(NativeImportHandler):
def conflict(self, name, obj, guid):
print("Object already exists: ",name)
return NativeImportResolve.skip

def progress(self, name, obj, exception):
print("in progess: ", name)

def skipped(self, list):
for obj in list:
print("Skipped: ", obj.get_name())

def importFilter(name, guid,type,path):
return True;

handler = Handler()
projects.primary.import_native(r"C:\Users\BANNERJEE\Desktop\S300.export", importFilter, handler)


You do not have the required permissions to view the files attached to this post.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited