On Thu, Apr 8, 2010 at 8:02 AM, Guillaume Bouchard <guillaume.bouch...@insa-lyon.fr> wrote: > BIG (HUGE) file. To set the StlAPI to Binary mode, the C documentation says > [1] that > StlAPI_Writer.ASCIIMode must be used, like that: > > w.ASCIIMode() # Get the value > w.ASCIIMode() = false # Set the value.
I already explained this to you in the IRC channel :-(. 10:47 < guibou> hey you, I'm back. Anyone know how to set a value with python-occ when the C api is like objet.method() = new_value (because lvalue other that name is not valid python) 10:48 < kanzure> i have no idea what you just asked :x 10:48 < kanzure> can you give me an example from the opencascade api? 10:49 < guibou> http://designfiles.org/lab/opencascade/occ6.3.0/doc/ReferenceDocumentation/DataExchange/html/classStlAPI__Writer.html#a7 <<< Here ASCIIMode 10:50 < guibou> we need to do stl_writer.ASCIIMode() = true/false; but this is not possible in python 10:50 < kanzure> ASCIIMode() returns true or false 10:51 < kanzure> you set ascii mode with StlAPI_Writer (the first parameter) 10:52 < guibou> ypeError: new_StlAPI_Writer() takes no arguments (1 given) 10:52 < guibou> TypeError: __init__() got an unexpected keyword argument 'ASCIIMode' 10:53 < guibou> Perhaps I'm stupid, but it does not work. 10:55 < kanzure> the problem is that, in python, there can only be one constructor 10:55 < kanzure> there are multiple constructors called StlAPI_Writer in the opencascade api 10:55 < kanzure> swig probably doesn't know how to handle these situations > This is impossible in python because python does not accepts lvalue as > expression. Don't bother with lvalues, then. - Bryan http://heybryan.org/ 1 512 203 0507 _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users