i have created several shapes and added them to my document with
Handle(XCAFDoc_ShapeTool) myAssembly = XCAFDoc_DocumentTool::ShapeTool(m_hDoc->Main());
TDF_Label lblNewPart = myAssembly->NewShape();
myAssembly->AddComponent(lblNewPart, lblShape, TopLoc_Location(transf));
Now I want to group the created Labels in a hierarchical structure. I tried to do this with
myAssembly->AddComponent(lblParent, lblNewPart, TopLoc_Location());
but somehow this doesn't work, if lblParent is already part of another assembly. Is there another way to build a hierarchical assembly structure in xde?