Archived discussion

FindAttribute not working

pythonOCCThu, 02/09/2023 - 10:321 reply

Browse this forum
QuestionAuthor

When using TNaming_NamedShape and FindAttribute to get the attribute from a label, I cannot get the shape stored in that attribute, the return is None. Is there anyone who has the same problem with me?

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

Hello, this situation is fully normal. It means, that you make some wrong actions while setting this attributes.

There can be problem only with algorithms. Python call C++ code directly.

Can you share a some more details? And why you do not use ShapeTool for these purposes?

Best regards, Commenter-1.