View Issue Details

IDProjectCategoryView StatusLast Update
0003830PartDesignBugpublic2019-09-03 18:25
Reporterchrisb Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Product Version0.18 
Target VersionFixed in Version 
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)
TagsNo tags attached.
FreeCAD Information

Activities

DeeJayOne

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.
[url=https://www.freecadweb.org/wiki/File_Format_FCStd]File_Format_FCStd/url]

Reproduction_colored.FCStd (3,440 bytes)
Reproduction_org.FCStd (3,427 bytes)

DeeJayOne

2019-09-03 08:58

reporter   ~0013519

The image result of the colored file.

bug color - test_1.PNG (18,111 bytes)
bug color - test_1.PNG (18,111 bytes)

DeeJayOne

2019-09-03 09:05

reporter   ~0013520

Last edited: 2019-09-03 09:09

View 2 revisions

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 (19,933 bytes)
test_change_face_color_ORG.FCStd (19,880 bytes)
rapport_DiffuseColor2.htm (6,413 bytes)

DeeJayOne

2019-09-03 09:11

reporter   ~0013521

Version Infos

Kunda1

2019-09-03 18:21

administrator   ~0013527

Last edited: 2019-09-03 18:25

View 4 revisions

@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

Kunda1

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 View Revisions
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 View Revisions
2019-09-03 18:23 Kunda1 Note Edited: 0013527 View Revisions
2019-09-03 18:25 Kunda1 Note Edited: 0013527 View Revisions
2019-09-03 18:25 Kunda1 Product Version => 0.18