STEP export retains only some colors

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
gjl31919
Posts: 5
Joined: Thu Sep 10, 2020 8:57 pm

STEP export retains only some colors

Post by gjl31919 »

Hi,

i want to color in some faces of a 3D object in Freecad. But i have some trouble with that, not all parts
keep their color after the export. I have here a simple example of a PCB, you can see the color of the PCB
is in the export but the pads on the back are not. Do i have to convert it somehow or what is going on?
before: https://pasteboard.co/JqugoeA.png
after: https://pasteboard.co/Jqugvg5.png


Here is the file for you to try out https://www.dropbox.com/s/j738rb1ebtrjj ... .step?dl=0
Attachments
2.PNG
2.PNG (43.5 KiB) Viewed 875 times
1.PNG
1.PNG (37.86 KiB) Viewed 875 times
gjl31919
Posts: 5
Joined: Thu Sep 10, 2020 8:57 pm

Re: STEP export retains only some colors

Post by gjl31919 »

No one has an idea why?
User avatar
Roy_043
Veteran
Posts: 8577
Joined: Thu Dec 27, 2018 12:28 pm

Re: STEP export retains only some colors

Post by Roy_043 »

If I import your Step file FreeCAD 0.19 hangs. And anyway to really help you we would need a FreeCAD file.
User avatar
Roy_043
Veteran
Posts: 8577
Joined: Thu Dec 27, 2018 12:28 pm

Re: STEP export retains only some colors

Post by Roy_043 »

I also cannot open the Step files I create myself from the forum.FCStd file. I do not know why. Maybe somebody else can assist?
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: STEP export retains only some colors

Post by easyw-fc »

I have no issue when exporting/importing the file to step

here my FC info
OS: Linux Mint 20 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: f5710fb5cf551b026617f6248afd5cc2c48a3750
Python version: 3.8.2
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.3.0
and my Import/Export settings
export-step.png
export-step.png (99.56 KiB) Viewed 750 times
It works fine also when deselecting legacy exporter.
User avatar
Roy_043
Veteran
Posts: 8577
Joined: Thu Dec 27, 2018 12:28 pm

Re: STEP export retains only some colors

Post by Roy_043 »

easyw-fc wrote: Sun Sep 20, 2020 9:34 pm I have no issue when exporting/importing the file to step
Thanks, that is useful information. The issue with FreeCAD hanging seems not related to the STEP import/export settings. Further testing shows that the problem is related to the FreeCAD (Coin?) version.

OK version:

Code: Select all

OS: Windows 8.1 (6.3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21764 (Git)
Build type: Release
Branch: master
Hash: ccea55a65512d37081d708d6f504d0c4d182a9e0
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Dutch/Netherlands (nl_NL)
Version that hangs:

Code: Select all

OS: Windows 8.1 (6.3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22366 (Git)
Build type: Release
Branch: master
Hash: 34c11fcc63efa2fc72cbc74c75c76e9f19d5c84c
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Dutch/Netherlands (nl_NL)
User avatar
Roy_043
Veteran
Posts: 8577
Joined: Thu Dec 27, 2018 12:28 pm

Re: STEP export retains only some colors

Post by Roy_043 »

@gjl31919:
With the version listed below, and the settings from @easyw-fc I am able to create a Step file with correct colors.

BTW: As you can see, you can attach files directly to a forum post.

Code: Select all

OS: Windows 8.1 (6.3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21764 (Git)
Build type: Release
Branch: master
Hash: ccea55a65512d37081d708d6f504d0c4d182a9e0
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Dutch/Netherlands (nl_NL)
Attachments
Forum_Roy.zip
(207.23 KiB) Downloaded 15 times
gjl31919
Posts: 5
Joined: Thu Sep 10, 2020 8:57 pm

Re: STEP export retains only some colors

Post by gjl31919 »

Amazing thanks i will try that, yes a just saw the Attachement feature
gjl31919
Posts: 5
Joined: Thu Sep 10, 2020 8:57 pm

Re: STEP export retains only some colors

Post by gjl31919 »

Is there a way to get that working in version 18 the tools im using are not ported to the V19, to import from my PCB CAD software to Freecad. Also i have noticed if i export this as a step file and import it to any other CAD software (i.e. CATIA etc) i only get the PCB but not the components. They appear in the part tree but are not shown/empty. Thanks already for the Trouble shouting.
Attachments
TEC305 3D.FCStd
(1009.35 KiB) Downloaded 11 times
Post Reply