Error when getting appearance.name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I've found strange case in one design.
It's crashing when I try to access body or face appearance.name property.
This is the error message:
In this example it's crashing at line:
print("body.appearance.name: ", body.appearance.name)
but one line before I have:
print("body.appearance: ", body.appearance)
and it works fine and returns the appearance.
This is very weird because I can do exactly the same thing in Spyder console and I got the name.
It seems to be related with component as Spyder console returns default Steel Satin material while component has assigned wood material in the whole assembly design so it should return wood, not the steel material from the source file.
Is there any way to fix this in the code instead of assigning appearance to the component in the source file?