View Issue Details

IDProjectCategoryView StatusLast Update
0001293FreeCADBugpublic2013-11-07 13:21
Reportertoreram Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionnot fixable 
Product Version0.13 
Summary0001293: Part.read + part.show missing colors
DescriptionAdding a part using:
>>>ImportGui.import("mymodel.step")
=> Part is imported and displayed correct with colors

Adding part using Part.read + Part.show:
>>>mypart = Part.read("mymodel.step")
>>>Part.show(mypart)
=> Part is read and displayed without colors

I use a script that uses Part.read + Part.show
TagsNo tags attached.
FreeCAD Information

Activities

wmayer

2013-10-30 13:32

administrator   ~0003836

In order to read colors OCC's OCAF framework needs to be used which requires many more libraries which we don't want to have listed as dependency of the Part module.

That's why all this is part of the Import module. A few months ago the relevant code from ImportGui has moved to Import so that you load/save colors inside a script without using the GUI.

http://forum.freecadweb.org/viewtopic.php?f=3&t=4249&p=33232i#p33331

Issue History

Date Modified Username Field Change
2013-10-30 10:06 toreram New Issue
2013-10-30 13:32 wmayer Note Added: 0003836
2013-11-07 13:21 wmayer Status new => closed
2013-11-07 13:21 wmayer Resolution open => not fixable