(self, shape, filename)
This class method saves the `shape` to the file `filename`.

        :param: TopoDS_Shape shape: loaded shape
        :param string filename: name of the input file.
            It should have proper extension (.iges or .igs)
This class method saves the `shape` to the file `filename`.
This class method saves the shape to the file filename .
def write_shape_to_file(self, shape, filename):
        """
        This class method saves the `shape` to the file `filename`.

        :param: TopoDS_Shape shape: loaded shape
        :param string filename: name of the input file.
            It should have proper extension (.iges or .igs)
        """
        self._check_filename_type(filename)
        self._check_extension(filename)
        IGESControl_Controller_Init()
        writer = IGESControl_Writer()
        writer.AddShape(shape)
        writer.Write(filename)
def write_shape_to_file ( self , shape , filename ) : self . _check_filename_type ( filename ) self . _check_extension ( filename ) IGESControl_Controller_Init ( ) writer = IGESControl_Writer ( ) writer . AddShape ( shape ) writer . Write ( filename )