Charles Sharman <charles.sharman@...> writes: Hi, Charles!
> > Hi Dalton, > > Is arquivosaida the name of the file? It should be. Yes, it is. It is a input parameter. > > What is steptopo? I don't see it defined in your example code. > > If this is exactly what you're running, try changing this: > > TopoDS_Face(BRepBuilderAPI_MakeFace(stepnurbs.GetHandle(), 1e- > 6).Shape()) > > to this: > > steptopo = TopoDS_Face(BRepBuilderAPI_MakeFace(stepnurbs.GetHandle(), > 1e-6).Shape()) What you said is exactly what I do, I just copy the lines wrongly here, sorry. So, this is the part of my code supposed to write the STEP file stepnurbs = Geom_BSplineSurface(stepptosctrl, steppesos, stepuknots, stepvknots, stepumults, stepvmults, k-1, l-1, 0, 0) steptopo = TopoDS_Face(BRepBuilderAPI_MakeFace(stepnurbs.GetHandle(), 1e- 6).Shape()) stepcontroller = STEPControl_Controller() stepcontroller.Init() stepwriter = STEPControl_Writer() stepwriter.Transfer(steptopo, STEPControl_AsIs) stepwriter.Write(arquivosaida) and the error for running it TypeError: in method 'new_TopoDS_Face', argument 1 of type 'TopoDS_Face const' > > - Charles > > _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users