2 Copyright (C) 2014-20xx CEA/DEN, EDF R&D
7 from ConnectorPlugin_ExportFeature import ExportFeature
10 class ConnectorPlugin(ModelAPI.ModelAPI_Plugin):
13 ModelAPI.ModelAPI_Plugin.__init__(self)
16 def createFeature(self, theFeatureID):
17 if theFeatureID == ExportFeature.ID():
18 return ExportFeature().__disown__()
20 print "ConnectorPlugin: No such feature %s" % theFeatureID
22 plugin = ConnectorPlugin()
23 aSession = ModelAPI.ModelAPI_Session.get()
24 print "Module loaded. Session", aSession
25 aSession.registerPlugin(plugin)