This function enables passing data in XAO format from SHAPER to GEOM through a memory buffer (bytes array), without creation of real file on disk.
- :param object: A being exported object
+ :param object: The object to export
:param string: The name of the author, empty by default
:param string: The name for the shape processed in GEOMETRY module, empty by default
**TUI Command**:
-.. py:function:: model.importPart(Doc, FileNameString, [PrevFeature])
+.. py:function:: model.importPart(Part_doc, FileNameString, [PrevFeature])
- :param part: The current part object
- :param string: A file name string
+ :param Part_doc: The target part document, where to import the data
+ :param string: The file name string
:param reference: The feature after which the imported entities should be inserted
.. py:function:: model.addImport(Part_doc, FileNameString)
- :param part: The current part object
+ :param Part_doc: The target part document, where to import the data
:param string: A file name string.
.. py:function:: model.addImportXAOMem(Part_doc, aBuffer)
This function allows importing data in XAO format from GEOM through a memory buffer (bytes array), without creation of real file on disk.
- :param part: The current part object
+ :param Part_doc: The target part document, where to import the data
:param aBuffer: A byte array with data in XAO format.
Result
.. py:function:: model.addImportSTEP(Part_doc, FileNameString,scalInterUnits,materials,colors)
- :param part: The current part object
+ :param Part_doc: The target part document, where to import the data
:param string: A file name string.
:param boolean: True if scale to UIS
:param boolean: True to create groups from materials