Nope, the error's still there...
Tomáš Létal <TomasLetal@...> writes: > > Hi Dalton, > you could try to change the line "stepexporter.Write(arquivosaida)" to "stepexporter.Write(arquivosaida.Shape())", I hope it helps. > > Best regards > > > ---------- Původní zpráva ----------Od: Dalton <dfazanaro- re5jqeeqqe8avxtiumw...@public.gmane.org>Komu: pythonocc-users- 8nu/KwtRnEU@public.gmane.orgDatum: 3. 4. 2014 15:49:19Předmět: [Pythonocc- users] STEP and Geom > Hi! I'm building an algorithm to construct a NURBS surface with pythonnocc and need to export it to a STEP file.I construct a Geom_BSplineSurface with the command linestepnurbs = Geom_BSplineSurface(stepptosctrl, steppesos, stepuknots, stepvknots, stepumults, stepvmults, k-1, l-1, 0, 0)where all the parameters are already defined and it works well. Then I try to write it to a STEP file with the following linesstepexporter = STEPControl_Writer()stepexporter.Transfer(stepnurbs, STEPControl_AsIs)stepexporter.Write(arquivosaida)and I get the message errorTypeError: in method 'STEPControl_Writer_Transfer', argument 2 of type 'TopoDS_Shape const'At GitHub, I was told to execute the commandTopoDS_face(BRepBuilderAPI_MakeFace(stepnurbs, ...but I still get a message error as belowTypeError: in method 'new_BRepBuilderAPI_MakeFace', argument 1 of type 'TopoDS_Wire const'Sorry if this may seems a noobie question, but I am not an specialist in python or opencascade, just starting to learn. :)Best regards._______________________________________________Pythonocc-users mailing listPythonocc-users- 8nu/KwtRnEU@public.gmane.orghttps://mail.gna.org/listinfo/pythonocc-users > > > > <div>Hi Dalton,<div><br></div> > <div>you could try to change the line "stepexporter.Write(arquivosaida)" to "stepexporter.Write(arquivosaida.Shape())", I hope it helps.</div> > <div><br></div> > <div>Best regards</div> > <div><br></div> > <div> > <br><p>---------- Původní zpráva ----------<br>Od: Dalton <dfazanaro@...><br>Komu: pythonocc-users@...<br>Datum: 3. 4. 2014 15:49:19<br>Předmět: [Pythonocc-users] STEP and Geom</p> > <br><blockquote>Hi! I'm building an algorithm to construct a NURBS surface with pythonnocc <br>and need to export it to a STEP file.<br><br>I construct a Geom_BSplineSurface with the command line<br><br>stepnurbs = Geom_BSplineSurface(stepptosctrl, steppesos, stepuknots, <br>stepvknots, stepumults, stepvmults, k-1, l-1, 0, 0)<br><br>where all the parameters are already defined and it works well. Then I try <br>to write it to a STEP file with the following lines<br><br>stepexporter = STEPControl_Writer() <br>stepexporter.Transfer(stepnurbs, STEPControl_AsIs) <br>stepexporter.Write(arquivosaida)<br><br>and I get the message error<br> <br>TypeError: in method 'STEPControl_Writer_Transfer', argument 2 of type <br>'TopoDS_Shape const'<br><br>At GitHub, I was told to execute the command<br><br>TopoDS_face(BRepBuilderAPI_MakeFace(stepnurbs, ...<br><br>but I still get a message error as below<br><br>TypeError: in method 'new_BRepBuilderAPI_MakeFace', argument 1 of type <br>'TopoDS_Wire const'<br><br>Sorry if this may seems a noobie question, but I am not an specialist in <br>python or opencascade, just starting to learn. :)<br> <br>Best regards.<br><br> <br>_______________________________________________<br>Pythonocc-users mailing list<br>Pythonocc-users@... <br>https://mail.gna.org/listinfo/pythonocc-users</blockquote> > </div> > </div> > _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users