# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2014-2015 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-2022 CEA/DEN, EDF R&D, OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
__libraryName__ = "STLPluginEngine"
def GetSTLPluginOperations(self):
- anOp = self.GetPluginOperations(self.myStudyId, __libraryName__)
+ anOp = self.GetPluginOperations(__libraryName__)
return anOp._narrow(ISTLOperations)
## Export the given shape into a file with given name in STL format.
anOp = GetSTLPluginOperations(self)
anOp.ExportSTL(theObject, theFileName, theIsASCII, theDeflection, theIsRelative )
if anOp.IsDone() == 0:
- raise RuntimeError, "Export : " + anOp.GetErrorCode()
+ raise RuntimeError("Export : " + anOp.GetErrorCode())
pass
pass