Adding a background colour or crosshatch to 2D drawing?

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!
derep
Posts: 21
Joined: Mon Jun 08, 2020 10:19 am

Adding a background colour or crosshatch to 2D drawing?

Postby derep » Tue Jun 30, 2020 4:38 pm

I have the following section of a floorplan.
Selection_042.png
Selection_042.png (4.34 KiB) Viewed 200 times
I wish to add a blue background to the WC's and a brown background to the stairs. Elsewhere I wish to denominate a retail area (for rateable value) with a coloured cross hatch.

I have tried to use the TechDraw Hatching tool but I cannot even get it to fill in a simple square or a circle.

I have also tried to use the Surface Filling tool with a bit better success. I can fill a simple square or a circle, but when I try move to more intricate shapes such as the WC I get either the error:
Surface: Boundary edges must be added in a consecutive order
This occurs when the lines I am trying to form a surface with don't meet end to end. Ie. I drew a line across the middle of the doorway so the fill would border any fill in the main room area. The line goes from a midpoint to a mid point.

Or if they do meet end to end I get the following error instead.
Surface: Wire is not closed
Any help on how to solve this is much appreciated. Thank you.

In case it helps I also have attached a copy of this part of the plan.

Edit: Update to add important information
OS: Linux Mint 19.3 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 2c56e3c9faec3accf134a2940d809dd44bcfbb3a
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)
Attachments
Example.FCStd
(164.22 KiB) Downloaded 6 times
Last edited by derep on Tue Jun 30, 2020 8:36 pm, edited 1 time in total.
derep
Posts: 21
Joined: Mon Jun 08, 2020 10:19 am

Re: Adding a background colour or crosshatch to 2D drawing?

Postby derep » Tue Jun 30, 2020 5:06 pm

A quick mockup of intended output (created in GIMP).
Selection_042e.png
Selection_042e.png (4.44 KiB) Viewed 181 times
User avatar
wandererfan
Posts: 3979
Joined: Tue Nov 06, 2012 5:42 pm

Re: Adding a background colour or crosshatch to 2D drawing?

Postby wandererfan » Wed Jul 01, 2020 12:01 am

derep wrote:
Tue Jun 30, 2020 4:38 pm
I have tried to use the TechDraw Hatching tool but I cannot even get it to fill in a simple square or a circle.
The usual approach for fancy drawings is to export the basics as Svg, then use Inkscape to dress things up.

Simple hatching of closed areas seems to work here.
ExampleHatch.png
ExampleHatch.png (57.79 KiB) Viewed 136 times
derep
Posts: 21
Joined: Mon Jun 08, 2020 10:19 am

Re: Adding a background colour or crosshatch to 2D drawing?

Postby derep » Wed Jul 01, 2020 9:24 am

wandererfan wrote:
Wed Jul 01, 2020 12:01 am
derep wrote:
Tue Jun 30, 2020 4:38 pm
I have tried to use the TechDraw Hatching tool but I cannot even get it to fill in a simple square or a circle.
The usual approach for fancy drawings is to export the basics as Svg, then use Inkscape to dress things up.

Simple hatching of closed areas seems to work here.

ExampleHatch.png
I would be able to do it in Inkscape, that isn't an issue, but I am hoping for a solution that works in FreeCAD. It would be a real pain to have to export the drawing to Inkcscape to draw in hatching every time a minor adjustment is made.

Did you do the attached hatch in FreeCAD?
User avatar
wandererfan
Posts: 3979
Joined: Tue Nov 06, 2012 5:42 pm

Re: Adding a background colour or crosshatch to 2D drawing?

Postby wandererfan » Wed Jul 01, 2020 12:56 pm

derep wrote:
Wed Jul 01, 2020 9:24 am
Did you do the attached hatch in FreeCAD?
Of course. :)

I don't think TechDraw will ever match Inkscape's abilities to produce pretty output.
Attachments
Example_hatch.FCStd
(176 KiB) Downloaded 1 time