easyw / kicadStepUpMod

kicadStepUp: ECAD to MCAD FreeCAD WorkBench
481 stars 59 forks source link

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

Open TimGoll opened 4 months ago

TimGoll commented 4 months ago

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

easyw commented 3 months ago

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

TimGoll commented 3 months ago

@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