View Issue Details

IDProjectCategoryView StatusLast Update
0003830PartDesignBugpublic2021-06-07 12:06
Reporterchrisb Assigned To 
Status confirmedResolutionopen 
Product Version0.18 
Target Version0.20 
Summary0003830: Features loose colors set with "Set colors" on file saving
DescriptionIn PartDesign SetColors can be applied only to features. They loose the color on file save.

Steps To Reproduce- Create a PartDesign additive cube at its default sizes
- color exactly one face: right mouse->Set colors, select one face, select color, confirm
- save the file
- revert the file.

Result: the color is gone. It seems to be the saving, not the loading, I compared Document.xml to an uncolored cube.

Forum discussion

OS: macOS 10.13
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15525 (Git)
Build type: Release
Branch: master
Hash: 1a7d3d9a37fe43468c8ac84590c1db53e2b2000a
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
FreeCAD Information



2019-09-03 05:56

reporter   ~0013517

I meet the problem with only some files and I don't find what is the origin.

I have tried to reproduce the bug with the cube as described but in my case all seems OK.
I'm using freeCAD v0.18-16131

Please see the attached .FCStd files. The difference between them is the "DiffuseColor" file in the .FCStd archive file. The colored version contains some additional bytes. I don't know how to decode the "DiffuseColor" file. How is it structured ? How each face of the cube (in our example) is associated with a color code ? Why these properties aren't stored in XML files (Document/GuiDocument).

The wiki page is not enough detailed about the DiffuseColor file.
Reproduction_colored.FCStd (Attachment missing)
Reproduction_org.FCStd (Attachment missing)


2019-09-03 08:58

reporter   ~0013519

The image result of the colored file.
bug color - test_1.PNG (Attachment missing)


2019-09-03 09:05

reporter   ~0013520

Last edited: 2019-09-03 09:09

I have found an example where the bug occurs.
Please see the followings files.

We can see that the "DiffuseColor2 file which is assigned for the colored file contains more bytes. We can also see that "DiffuseColor2" file is well assigned for the "Fillet" (Last element in the list) where the color was applied.

PS : I'm using a Windows 10 OS.

test_change_face_color_colored.FCStd (Attachment missing)
test_change_face_color_ORG.FCStd (Attachment missing)
rapport_DiffuseColor2.htm (Attachment missing)
Capture d’écran (76).png (Attachment missing)


2019-09-03 09:11

reporter   ~0013521

Version Infos
FreeCAD_v0.18-16131 (2019-07-12).PNG (Attachment missing)


2019-09-03 18:21

administrator   ~0013527

Last edited: 2019-09-03 18:25

@chrisb quick favor, when a bug is confirmed do you mind marking it as such (changing the status to yellow 'confirmed'). Thanks!

@DeeJayOne thanks for your detailed follow-ups. JFYI, please for our convenience (less mouse clicks) instead of posting a screenshot of your About FreeCAD dialog window, please instead paste the text from Help > About FreeCAD > Copy to clipboard
It actually provides us with more info and it takes up less storage space. Thank you.

Edit: chrisb sorry, didn't see how old this ticket was and that you left the target version off intentionally


2019-09-03 18:22

administrator   ~0013528

Confirmed by chrisb on the forum thread

Issue History

Date Modified Username Field Change
2019-02-12 06:27 chrisb New Issue
2019-09-03 05:56 DeeJayOne File Added: Reproduction_colored.FCStd
2019-09-03 05:56 DeeJayOne File Added: Reproduction_org.FCStd
2019-09-03 05:56 DeeJayOne Note Added: 0013517
2019-09-03 08:58 DeeJayOne File Added: bug color - test_1.PNG
2019-09-03 08:58 DeeJayOne Note Added: 0013519
2019-09-03 09:05 DeeJayOne File Added: test_change_face_color_colored.FCStd
2019-09-03 09:05 DeeJayOne File Added: test_change_face_color_ORG.FCStd
2019-09-03 09:05 DeeJayOne File Added: rapport_DiffuseColor2.htm
2019-09-03 09:05 DeeJayOne File Added: Capture d’écran (76).png
2019-09-03 09:05 DeeJayOne Note Added: 0013520
2019-09-03 09:09 DeeJayOne Note Edited: 0013520
2019-09-03 09:11 DeeJayOne File Added: FreeCAD_v0.18-16131 (2019-07-12).PNG
2019-09-03 09:11 DeeJayOne Note Added: 0013521
2019-09-03 18:21 Kunda1 Note Added: 0013527
2019-09-03 18:22 Kunda1 Status new => confirmed
2019-09-03 18:22 Kunda1 Note Added: 0013528
2019-09-03 18:22 Kunda1 Note Edited: 0013527
2019-09-03 18:23 Kunda1 Note Edited: 0013527
2019-09-03 18:25 Kunda1 Note Edited: 0013527
2019-09-03 18:25 Kunda1 Product Version => 0.18
2021-02-06 06:43 abdullah Target Version => 0.20
2021-06-07 12:06 Kunda1 Tag Attached: colors