Hi,

This issue is fixed: http://code.google.com/p/pythonocc/source/detail?r=1065

It's now possible to run the following lines from the latest svn trunk
revision:

macbook-pro-de-thomas-paviot:~ thomas$ python
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from OCC.STEPControl import *
>>> from OCC.Interface import *
>>> w = STEPControl_Writer()
>>> Interface_Static_CVal("write.step.schema")
'AP214CD'
>>> Interface_Static_SetCVal("write.step.schema","AP203")
1
>>> Interface_Static_CVal("write.step.schema")
'AP203'
>>>

All the best,

Thomas

2010/7/29 Thomas Paviot <tpav...@gmail.com>

> Hello Alain,
>
> Thanks for this interesting feedback. You currently have to pass an
> instance of a Interface_Static class (the python wrapper does not currently
>  support  C++ static methods). This issue is reported on the googlecode page
> as #20: http://code.google.com/p/pythonocc/issues/detail?id=20
>
> Best regards,
>
> Thomas
>
> 2010/7/26 Alain Fagot <alain.fa...@dorea.fr>
>
>>  Hello,
>>
>>
>>
>> Starting from the sample provided in
>> “pythonOCC-0.4-samples\Level2\DataExchange” I would like to change de output
>> protocol to AP203 (the default being AP214).
>>
>>
>>
>> In C++ this can be done with the following line:
>>
>> Interface_Static::SetCVal ("write.step.schema", "AP203")
>>
>>
>>
>> I tried in Python, but SetCVal is not class method of Interface_Static
>> (not static method)
>>
>> An instance of  Interface_Static is requested.
>>
>>
>>
>> Does someone have some indication on how to proceed?
>>
>>
>>
>> Regards,
>>
>>
>>
>>             Alain
>>
>>
>>
>>
>>
>> _______________________________________________
>> Pythonocc-users mailing list
>> Pythonocc-users@gna.org
>> https://mail.gna.org/listinfo/pythonocc-users
>>
>>
>
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to