tpaviot/pythonocc — Issue #34: TDF_Label.NewChild() method call raises an exception
Author: tpaviot
Created: 2011-11-24 05:06:26+00:00
State: open

Running Level1\OCAF\topological_naming and Level2\InteractiveFeatureTree outputs the following error message:

Traceback (most recent call last):
File "C:\Python26\POCC\0.5\examples\Level1\OCAF\topological_naming\named_shape_demo.py", line 45, in
box_label = ts.NewChild(root)
NotImplementedError: Wrong number of arguments for overloaded function 'TDF_TagSource_NewChild'.
Possible C/C++ prototypes are:
NewChild(TDF_Label const &)
NewChild(TDF_TagSource *)

When executing the NewChild method:

doc = h_doc.GetObject()

root = doc.Main()

ts = TDF.TDF_TagSource()

#
# We'll add all shapes under this node in the label tree
#
shape_root = ts.NewChild(root)