Issue #6451 - Exporting STEP loses color

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
cybergabry
Posts: 3
Joined: Thu Feb 24, 2022 12:34 pm

Issue #6451 - Exporting STEP loses color

Post by cybergabry »

Hi everyone,
this is my first post, I hope to do it correctly.

Problem: I have a model with some colored elements. When I export the model as a STEP file, the color disappears and the entire model is default gray.

I have already read the related posts:

https://forum.freecadweb.org/viewtopic.php?t=44126
https://forum.freecadweb.org/viewtopic.php?t=50131

and I have set the STEP settings as suggested but the problem stays.

FreeCAD version:

OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +99 (Git)
Build type: Release
Branch: Branch_0.19.3
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: Italian/Italy (it_IT)

I attach here my project and step files.

Thank you very much in advance.
Attachments
Cap_1000uF_160V-Part.step
(97.57 KiB) Downloaded 29 times
Cap_1000uF_160V.FCStd
(103.42 KiB) Downloaded 20 times
Last edited by cybergabry on Thu Feb 24, 2022 6:48 pm, edited 1 time in total.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Exporting STEP loses color (2)

Post by Kunda1 »

Can you test on FreeCAD development build?
https://github.com/FreeCAD/FreeCAD-Bund ... kly-builds
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
cybergabry
Posts: 3
Joined: Thu Feb 24, 2022 12:34 pm

Re: Exporting STEP loses color (2)

Post by cybergabry »

Kunda1 wrote: Thu Feb 24, 2022 4:04 pm Can you test on FreeCAD development build?
https://github.com/FreeCAD/FreeCAD-Bund ... kly-builds
Thank you Kunda1 for your fast response.

As requested, tried on:
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.27422 (Git)
Build type: Release
Branch: master
Hash: d938733eaf2c2ce7cb18d1cbb56147185c473530
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: Italian/Italy (it_IT)

Unfortunately, the problem stays anyway.
User avatar
Roy_043
Veteran
Posts: 8455
Joined: Thu Dec 27, 2018 12:28 pm

Re: Exporting STEP loses color (2)

Post by Roy_043 »

The problem seems related to the use of a PartDesign Body. If you replace it with a Part SimpleCopy the applied face colors are exported to the STEP file.
Attachments
Cap_1000uF_160V_2.FCStd
(119.92 KiB) Downloaded 30 times
Cap_1000uF_160V-Part_2.step
(98.3 KiB) Downloaded 19 times
cybergabry
Posts: 3
Joined: Thu Feb 24, 2022 12:34 pm

Re: Exporting STEP loses color (2)

Post by cybergabry »

Roy_043 wrote: Thu Feb 24, 2022 5:46 pm The problem seems related to the use of a PartDesign Body. If you replace it with a Part SimpleCopy the applied face colors are exported to the STEP file.
Thank you very much Roy_043 :D You got it.
User avatar
Roy_043
Veteran
Posts: 8455
Joined: Thu Dec 27, 2018 12:28 pm

Re: [Solved] Exporting STEP loses color (2)

Post by Roy_043 »

User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Solved] Exporting STEP loses color (2)

Post by Kunda1 »

Why was this thread retitled [Solved] ?

edit: issue #6451 is still open
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: [Solved] Exporting STEP loses color (2)

Post by adrianinsaval »

Kunda1 wrote: Mon May 16, 2022 3:48 pm Why was this thread retitled [Solved] ?
I'm guessing OP was happy with the workaround and din't care about the underlying bug, being a mod could you rename it? It's very bad for the bug's visibility as many might skip the topic believing it is fixed.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Issue #6451 - Exporting STEP loses color

Post by Kunda1 »

adrianinsaval wrote: Mon May 16, 2022 6:29 pm being a mod could you rename it?
Renamed. Thanks adrianinsaval ;)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply