Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Issue importing step files wrt:colors #606

@timiskander

Description

@timiskander

I was having a pretty consistent issue trying to import a step file (PCB model generated by Altium).
The error was coming from TopoMapper.createTopoNames(). Specifically trying to access DiffuseColor (exception thrown saying object has no attibute "DiffuseColor". I ended up working around it by adding
if hasattr(ob.ViewObject,"ShapeColor"):
around the "manage colors of faces" block.
a2p_import_color.patch
I have very little insight into the inner workings of freecad, nevermind the a2plus code base, but the patch is here for your consideration.
cheers and thanks for providing this tool!
/Tim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions