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

Exporting 3D Model fails when there are parts in parts #219

Open
TimGoll opened this issue May 16, 2024 · 2 comments
Open

Exporting 3D Model fails when there are parts in parts #219

TimGoll opened this issue May 16, 2024 · 2 comments

Comments

@TimGoll
Copy link

TimGoll commented May 16, 2024

image

I can't export the "picolibro" part here, because the sub parts don't have a shape color attribute. The elements within this part are colored though. I think this has something to do with the VWRL exporter.

16:15:17  Running the Python command 'ksuToolsExportModel' failed:
Traceback (most recent call last):
  File "C:\Users\tigo\AppData\Roaming\FreeCAD\Mod\kicadStepUpMod.backup1701772747.179403\.\kicadStepUpCMD.py", line 1285, in Activated
    routineScaleVRML()
  File "C:\Users\tigo\AppData\Roaming\FreeCAD\Mod\kicadStepUpMod.backup1701772747.179403\.\kicadStepUptools.py", line 7416, in routineScaleVRML
    lbl=go_export(fullFilePathName)
  File "C:\Users\tigo\AppData\Roaming\FreeCAD\Mod\kicadStepUpMod.backup1701772747.179403\.\kicadStepUptools.py", line 2684, in go_export
    export(objs, fPathName, 0.3937, lbl)
  File "C:\Users\tigo\AppData\Roaming\FreeCAD\Mod\kicadStepUpMod.backup1701772747.179403\.\kicadStepUptools.py", line 2298, in export
    color.append(FreeCADGui.ActiveDocument.getObject(obj.Name).ShapeColor)

'Gui.ViewProviderDocumentObject' object has no attribute 'ShapeColor'

Versions

  • KiCad Stepup: V11.1.5
  • FreeCad v0.21.2
@easyw
Copy link
Owner

easyw commented Jun 19, 2024

@TimGoll
in kSU you can use he make union or make compound and then export it

@TimGoll
Copy link
Author

TimGoll commented Jun 19, 2024

@TimGoll
in kSU you can use he make union or make compound and then export it

But that looses all existing colors in the model

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

2 participants