IGESControl (as well as STEPControl) takes TopoDS_Shape instance as a
parameter.

If you run pythonOCC-0.4, use the get_shapes() method of the
ParametricModelingContext instance. You'll get a list of TopoDS_Shapes you
can pass to the IGES or STEP exporter.

In the latest svn trunk revision, this method was replaced by the
get_shape() method: box_shape = my_context.get_shape(my_box)

Thomas

2010/7/9 Wangshiraz <shira...@hotmail.com>

>  Hi,
>
> I am looking at this PAF sample - test_box.py. But have no idea how to
> export the box in STEP or IGES file. It seems the box can't be added with
> IGESControl.IGESControl_Writer().AddShape().
>
> Any help?
>
> Thanks
>
>
> >
> > An example of how to use both parametric and meshing frameworks using
> > callbacks is available at:
> >
> http://code.google.com/p/pythonocc/source/browse/trunk/src/examples/Level2/PAF/paf_smesh.py
> >
> > ***********************************************
>
> ------------------------------
> 更多热辣资讯尽在新版MSN首页! 立刻访问! <http://cn.msn.com/>
>
> _______________________________________________
> 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