[workaround] Ifc import with original line colors?

This forum section is only for IFC-related issues
Post Reply
User avatar
thomas-neemann
Veteran
Posts: 6661
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE

[workaround] Ifc import with original line colors?

Post by thomas-neemann »

e.g. for electrical planning with ifc files, it would be very useful to import the original colors. when i import an ifc file with colored lines, all lines are in the current color. is there a workflow in which the original colors are imported?



situation when exporting

ifc-1.png
ifc-1.png (91.99 KiB) Viewed 293 times

after import

ifc4.png
ifc4.png (75.46 KiB) Viewed 293 times
tn-test.ifc
(3.67 KiB) Downloaded 14 times
OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.27319 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 67706b1)
Hash: 67706b14df32b91b948952ea2c9350948ba4d4db
Python version: 3.9.10
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: German/Germany (de_DE)
Last edited by thomas-neemann on Wed Feb 09, 2022 1:44 pm, edited 1 time in total.
ich biete freecad online-support an, als mini-job
VHS Freecad Webseminare Herbst 2022
https://www.vhs-lingen.de/programm/beru ... 011#inhalt
https://www.vhs-lingen.de/programm/beru ... 012#inhalt
User avatar
thomas-neemann
Veteran
Posts: 6661
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE

Re: Ifc import with original line colors?

Post by thomas-neemann »

Apparently, the last color used when drawing all lines the same color when exporting. when importing into freecad, all lines were changed to the currently set color.

the color set when exporting doesn't matter



sit-g.png
sit-g.png (85.43 KiB) Viewed 250 times



dds2.png
dds2.png (28.32 KiB) Viewed 250 times

tn-test-r-b-g.ifc
(7.23 KiB) Downloaded 15 times
ich biete freecad online-support an, als mini-job
VHS Freecad Webseminare Herbst 2022
https://www.vhs-lingen.de/programm/beru ... 011#inhalt
https://www.vhs-lingen.de/programm/beru ... 012#inhalt
User avatar
thomas-neemann
Veteran
Posts: 6661
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE

Re: Ifc import with original line colors?

Post by thomas-neemann »

while it is, here is a suggested workaround:

the lines are shown in black, but the symbols of the devices are colored. here a distinction is made between 220v blue and 380v red

test-blau-rot.ifc
(45.99 KiB) Downloaded 17 times
wa.png
wa.png (68.09 KiB) Viewed 223 times
ich biete freecad online-support an, als mini-job
VHS Freecad Webseminare Herbst 2022
https://www.vhs-lingen.de/programm/beru ... 011#inhalt
https://www.vhs-lingen.de/programm/beru ... 012#inhalt
Post Reply