# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2014-2016 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__ = "STEPPluginEngine"
def GetSTEPPluginOperations(self):
- anOp = self.GetPluginOperations(self.myStudyId, __libraryName__)
+ anOp = self.GetPluginOperations(__libraryName__)
return anOp._narrow(ISTEPOperations)
## Export the given shape into a file with given name in STEP format.
anOp = GetSTEPPluginOperations(self)
anOp.ExportSTEP(theObject, theFileName, theUnit)
if anOp.IsDone() == 0:
- raise RuntimeError, "Export : " + anOp.GetErrorCode()
+ raise RuntimeError("Export : " + anOp.GetErrorCode())
pass
pass
anIsIgnoreUnits = theIsIgnoreUnits
anIsCreateAssemblies = IsCreateAssemblies;
aName = theName
- if isinstance( theIsIgnoreUnits, basestring ):
+ if isinstance( theIsIgnoreUnits, str ):
anIsIgnoreUnits = False
aName = theIsIgnoreUnits
pass
- elif isinstance( IsCreateAssemblies, basestring ):
+ elif isinstance( IsCreateAssemblies, str ):
anIsCreateAssemblies = False
aName = IsCreateAssemblies
pass