From 7a571b94a202fdca18185a8371585d85c62ed6bb Mon Sep 17 00:00:00 2001 From: spo Date: Tue, 27 Oct 2015 15:16:03 +0300 Subject: [PATCH] Rename addExport() to exportToFile(). --- src/PythonAPI/model/exchange/__init__.py | 2 +- src/PythonAPI/model/exchange/exchange.py | 2 +- src/PythonAPI/model/partset/part.py | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/PythonAPI/model/exchange/__init__.py b/src/PythonAPI/model/exchange/__init__.py index 756097b87..71b17bbea 100644 --- a/src/PythonAPI/model/exchange/__init__.py +++ b/src/PythonAPI/model/exchange/__init__.py @@ -1,4 +1,4 @@ """Package for Exchange plugin for the Parametric Geometry API of the Modeler. """ -from exchange import addImport, addExport \ No newline at end of file +from exchange import addImport, exportToFile \ No newline at end of file diff --git a/src/PythonAPI/model/exchange/exchange.py b/src/PythonAPI/model/exchange/exchange.py index c294bc4e4..9648b7d52 100644 --- a/src/PythonAPI/model/exchange/exchange.py +++ b/src/PythonAPI/model/exchange/exchange.py @@ -48,7 +48,7 @@ class Import(Interface): pass -def addExport(part, *args): +def exportToFile(part, *args): """Add an Export feature to the Part and return Export. Pass all args to Export __init__ function. diff --git a/src/PythonAPI/model/partset/part.py b/src/PythonAPI/model/partset/part.py index bcbd56087..50eb352b9 100644 --- a/src/PythonAPI/model/partset/part.py +++ b/src/PythonAPI/model/partset/part.py @@ -40,5 +40,3 @@ class Part(Interface): """Returns the Part document created by this feature.""" result_part = ModelAPI.modelAPI_ResultPart(self._feature.firstResult()) return result_part.partDoc() - - -- 2.39.2