xarial / xcad

Framework for developing CAD applications for SOLIDWORKS, including add-ins, stand-alone applications, macro features, property manager pages, etc.
https://xcad.net
MIT License
126 stars 25 forks source link

Material Issue #119

Closed Brent-bai closed 7 months ago

Brent-bai commented 7 months ago

material_name = part.Configurations[c.config_name].Material.Name Code above throw a exception: Xarial.XCad.Exceptions.EntityNotFoundException:“Entity 'XXXX' is not found in the repository” I have checked the folder "C:\ProgramData\SOLIDWORKS", the material database folder lost for some reasons, maybe it's the causing. Perhaps you should add a method to avoid the exception arising.

Brent-bai commented 7 months ago

I changed the language to local, material name is return, but density is raising the simular exception.