
Thu, 08/27/2015 - 14:28
Forums:
Hi,
a main rule concerning OCAF is that is not possible to add two identical attributes (same classes) to a given label.
Let us consider the TDataXtd_Point attribute. By adding this attribute in the label LAB, automatically a TNaming_NamedShape (BRep_TVertex) is added.
Let us consider the TDataXtd_Axis attribute. By adding this attribute in the label LAB, automatically a TNaming_NamedShape (BRep_TEdge) is added.
But the last TNaming_NamedShape (BRep_TEdge) has erased the TNaming_NamedShape (BRep_TVertex).
It is not possible to read the point stored in the TDataXtd_Point attribute.
No exception is launched in a such situation.
Is it normal ?
Is someone has faced this situation ?
Regards,
Denis Teissandier
Thu, 08/27/2015 - 15:58
Hi,
I have not yet worked with TDataXtd_Points, but normally in OCAF you would create a label for every new entity. Attributes are there only to descibe details of this entity. Therefore if you have an edge and a vertex, their attributes should probably be stored at differnt labels.
Ciao,
Benjamin