Opencascade OCAF labels

rye033

Looking around for some CAD
Hello,
I read that is is not possible to remove the label from ocaf. What is the right way then to remove my custom data which I added as attribute to the label? Should i remove all the attributes from given label and when traversing through the ocaf three should I check if the label has any attribute and when not, shoud I skip this label?
Thanks a lot.
 

Quaoar

Administrator
Staff member
Yes, you should normally call this "ForgetAllAttributes()" method, and this way, you can clean up the real data from the storage. As I understand the principle, labels never die to allow for undo/redo. They will, however, vanish after saving and reopening the OCAF document, but in the scope of one session, you should do exactly what you described.
 
Top