Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin crashes when no ShapeColor #224

Open
phodina opened this issue Jul 14, 2024 · 0 comments
Open

Plugin crashes when no ShapeColor #224

phodina opened this issue Jul 14, 2024 · 0 comments

Comments

@phodina
Copy link

phodina commented Jul 14, 2024

Hi,
I've recently wanted to export WRL model to Kicad of this component.

However I encountered some issue and don't know how to fix it. The plugin during export crashes as the property ShapeColor is not set.

18:22:54  Running the Python command 'ksuToolsExportModel' failed:
Traceback (most recent call last):
  File "/home/cylon2p0/.local/share/FreeCAD/Mod/kicadStepUpMod/./kicadStepUpCMD.py", line 1292, in Activated
    routineScaleVRML()
  File "/home/cylon2p0/.local/share/FreeCAD/Mod/kicadStepUpMod/./kicadStepUptools.py", line 7571, in routineScaleVRML
    lbl=go_export(fullFilePathName)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cylon2p0/.local/share/FreeCAD/Mod/kicadStepUpMod/./kicadStepUptools.py", line 2717, in go_export
    export(objs, fPathName, 0.3937, lbl)
  File "/home/cylon2p0/.local/share/FreeCAD/Mod/kicadStepUpMod/./kicadStepUptools.py", line 2331, in export
    color.append(FreeCADGui.ActiveDocument.getObject(obj.Name).ShapeColor)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

'Gui.ViewProviderDocumentObject' object has no attribute 'ShapeColor'KiCadStepUpWB.Deactivated()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant