SALOME documentation central

Importing/exporting geometrical objects
[All package methods, grouped by their purpose]

Functions

def geompy.Import
 Import a shape from the BREP or IGES or STEP file (depends on given format) with given name.
def geompy.ImportBREP
 Shortcut to Import() for BREP format.
def geompy.ImportIGES
 Shortcut to Import() for IGES format.
def geompy.GetIGESUnit
 Return length unit from given IGES file.
def geompy.ImportSTEP
 Shortcut to Import() for STEP format.
def geompy.Export
 Export the given shape into a file with given name.
def geompy.ExportBREP
 Shortcut to Export() for BREP format.
def geompy.ExportIGES
 Shortcut to Export() for IGES format.
def geompy.ExportSTEP
 Shortcut to Export() for STEP format.

Function Documentation

def geompy.Import (   self,
  theFileName,
  theFormatName 
)

Import a shape from the BREP or IGES or STEP file (depends on given format) with given name.

Parameters:
theFileName The file, containing the shape.
theFormatName Specify format for the file reading. Available formats can be obtained with InsertOp.ImportTranslators() method. If format 'IGES_SCALE' is used instead 'IGES' length unit will be set to 'meter' and result model will be scaled.
Returns:
New GEOM_Object, containing the imported shape.

Example

def geompy.ImportBREP (   self,
  theFileName 
)

Shortcut to Import() for BREP format.

Example

def geompy.ImportIGES (   self,
  theFileName 
)

Shortcut to Import() for IGES format.

Example

def geompy.GetIGESUnit (   self,
  theFileName 
)

Return length unit from given IGES file.

Example

def geompy.ImportSTEP (   self,
  theFileName 
)

Shortcut to Import() for STEP format.

Example

def geompy.Export (   self,
  theObject,
  theFileName,
  theFormatName 
)

Export the given shape into a file with given name.

Parameters:
theObject Shape to be stored in the file.
theFileName Name of the file to store the given shape in.
theFormatName Specify format for the shape storage. Available formats can be obtained with InsertOp.ImportTranslators() method.

Example

def geompy.ExportBREP (   self,
  theObject,
  theFileName 
)

Shortcut to Export() for BREP format.

Example

def geompy.ExportIGES (   self,
  theObject,
  theFileName 
)

Shortcut to Export() for IGES format.

Example

def geompy.ExportSTEP (   self,
  theObject,
  theFileName 
)

Shortcut to Export() for STEP format.

Example

 All Data Structures Namespaces Files Functions Variables

Copyright © 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS