View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0003165||FreeCAD||Bug||public||2017-08-18 06:49||2018-09-28 09:59|
|Reporter||Batteries Included||Assigned To||wmayer|
|Target Version||0.18||Fixed in Version||0.18|
|Summary||0003165: Color information lost in STEP export|
|Description||Exporting a coloured model using either of these approaches|
Results in a step file that has no colour information.
Color is included if the step file is written using
Unfortunately this 3rd approach cannot be used from freecadcmd, and that is all I have available for reasons of running on a headless Linux box in the cloud, and for performance reasons.
|Steps To Reproduce|
|Additional Information||OS: Mac OS X|
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11797 (Git)
Build type: Release
Branch: (detached from a508032)
Python version: 2.7.13
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedKingdom (en_GB)
@Batteries_Included please open a forum thread to discuss with community. Thanks!
I did start with the forums back in July
Some suggestions arrived as private messages which I tried, and ended up with just a better example to show the problem. The final suggestion was 0.17 and then file a bug report.
||It's of course possible to create a STEP file with color information from the command line only. See: https://forum.freecadweb.org/viewtopic.php?f=22&t=23494&p=187294#p187294|
||Following wmayers post we have a working solution. So personally this loss of color information no longer matters. I would like to drop the severity to minor or less, but I do not see any way to edit my bug report.|
||Is there still something left that must be fixed/implemented? Otherwise the ticket can be closed.|
I would expect that when a coloured model is read in, when its exported the colour would be included, export format permitting.
We know FreeCAD can write coloured STEP files now, so it still strikes me as a bug that it doesn't use the colour information it has, either from the import or from the view.
However as you have been kind enough to give me a way forward I am happy with what ever you choose to do with this bug.
||My understanding is that @vejmarie did the latest STEP developments. Maybe he/she could look at adding support for colour.|
||I can have a look, but have a big todo list right now. The ImportGUI code is the one I worked on lately. The Part code is older, and more basic implementation of STEP Import/Export. I will check why it doesn't export Color, but give me a few weeks.|
||assigning to vejmarie|
||@vejmarie we're starting to go through vet which tickets are relevant to 0.17 release and which should be bumped. Care to weigh in on this one?|
With https://github.com/FreeCAD/FreeCAD/commit/02ab1c9424944bbf289931ac31045efbce0b1e0d the STEP import on the command line has been improved to return a list of part object/colors pairs.
It's up to the caller to decide what to do with the color information. When running the command line version of STEP import in GUI mode you can e.g. do this:
If a user only uses the command line version of FreeCAD it's up to him to save the color information in his own data structure.
Btw, the STEP export in the Part module is not supposed to handle colors as here the simplified class of OCCT is used which doesn't support. That's the reason why the Import module has been created where the OCAF framework can be used with extended support of color and names.
|2017-08-18 06:49||Batteries Included||New Issue|
|2017-08-18 06:49||Batteries Included||File Added: test.scad|
|2017-08-18 06:49||Batteries Included||Tag Attached: colors|
|2017-08-18 06:49||Batteries Included||Tag Attached: STEP|
|2017-08-18 10:27||Kunda1||Note Added: 0009947|
|2017-08-18 10:27||Kunda1||Note Edited: 0009947|
|2017-08-18 10:27||Kunda1||Note Edited: 0009947|
|2017-08-18 10:28||Kunda1||Tag Attached: #post-to-forum|
|2017-08-18 10:29||Kunda1||Description Updated|
|2017-08-18 10:29||Kunda1||Steps to Reproduce Updated|
|2017-08-18 10:30||Kunda1||Description Updated|
|2017-08-18 11:10||Batteries Included||Note Added: 0009952|
|2017-08-19 09:30||wmayer||Note Added: 0009953|
|2017-08-19 14:51||Batteries Included||Note Added: 0009957|
|2017-08-19 15:22||wmayer||Note Added: 0009958|
|2017-08-19 15:59||Batteries Included||Note Added: 0009961|
|2017-08-19 18:53||keithsloan52||Note Added: 0009962|
|2017-08-19 18:59||vejmarie||Note Added: 0009963|
|2017-08-19 19:30||Kunda1||Assigned To||=> vejmarie|
|2017-08-19 19:30||Kunda1||Status||new => assigned|
|2017-08-19 19:31||Kunda1||Note Added: 0009964|
|2017-08-19 19:31||Kunda1||Target Version||=> 0.17|
|2017-08-19 19:31||Kunda1||Tag Detached: #post-to-forum|
|2017-11-21 16:14||Kunda1||Note Added: 0010451|
|2017-11-26 15:08||wmayer||Target Version||0.17 => 0.18|
|2018-09-28 09:59||wmayer||Assigned To||vejmarie => wmayer|
|2018-09-28 09:59||wmayer||Status||assigned => closed|
|2018-09-28 09:59||wmayer||Resolution||open => fixed|
|2018-09-28 09:59||wmayer||Fixed in Version||=> 0.18|
|2018-09-28 09:59||wmayer||Note Added: 0011866|