(self, shape, filename)
This 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 (.step or .stp)
This method saves the `shape` to the file `filename`.
This method saves the shape to the file filename .
def write_shape_to_file(self, shape, filename):
        """
        This 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 (.step or .stp)
        """
        self._check_filename_type(filename)
        self._check_extension(filename)
        step_writer = STEPControl_Writer()
        # Changes write schema to STEP standard AP203
        # It is considered the most secure standard for STEP.
        # *According to PythonOCC documentation (http://www.pythonocc.org/)
        Interface_Static_SetCVal("write.step.schema", "AP203")
        step_writer.Transfer(shape, STEPControl_AsIs)
        step_writer.Write(filename)
def write_shape_to_file ( self , shape , filename ) : self . _check_filename_type ( filename ) self . _check_extension ( filename ) step_writer = STEPControl_Writer ( ) # Changes write schema to STEP standard AP203 # It is considered the most secure standard for STEP. # *According to PythonOCC documentation (http://www.pythonocc.org/) Interface_Static_SetCVal ( "write.step.schema" , "AP203" ) step_writer . Transfer ( shape , STEPControl_AsIs ) step_writer . Write ( filename )