# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# Engine Library Name
__libraryName__ = "DXFPluginEngine"
+## Get DXF plugin operations interface
+# @return an instance of DXF plugin operations interface
def GetDXFPluginOperations(self):
+ """
+ Get DXF plugin operations interface.
+
+ Returns:
+ An instance of DXF plugin operations interface
+ """
anOp = self.GetPluginOperations(self.myStudyId, __libraryName__)
return anOp._narrow(IDXFOperations)
## Export the given shape into a file with given name in DXF format.
# @param theObject Shape to be stored in the file.
# @param theFileName Name of the file to store the given shape in.
+# @sa ImportDXF
def ExportDXF(self, theObject, theFileName):
"""
Export the given shape into a file with given name in DXF format.
# If material names are imported it returns the list of
# objects. The first one is the imported object followed by
# material groups.
+#
# @note Auto publishing is allowed for the shape itself. Imported
# material groups are not automatically published.
+#
+# @sa ExportDXF
def ImportDXF(self, theFileName, theName=None):
"""
Import a shape from the DXF file