QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help > Check for Updates)


FS#538 - add to / remove from hatch

Attached to Project: QCAD
Opened by Stefan (stefan) - Friday, 06 April 2012, 17:19 GMT+1
Last edited by Andrew (andrew) - Wednesday, 25 April 2012, 10:50 GMT+1
Task Type Feature Request
Category QCAD (main)
Status Closed
Assigned To Andrew (andrew)
Operating System All
Severity Low
Priority Normal
Reported Version 3 RC5
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Given a hatch, it would be very useful if one could add another closed polyline to the existing hatch or remove the overlapping area from the existing hatch.

This task depends upon

Closed by  Andrew (andrew)
Wednesday, 25 April 2012, 10:50 GMT+1
Reason for closing:  Implemented
Comment by Stefan (stefan) - Thursday, 12 April 2012, 21:50 GMT+1

Perhaps this feature may be implemented easily by treating a hatch like a polyline, for which "add node" and "delete node" already exist?

Comment by Stefan (stefan) - Tuesday, 17 April 2012, 09:01 GMT+1

Or even simpler: a tool that converts a hatch into one or more polyline(s).

Comment by Andrew (andrew) - Tuesday, 17 April 2012, 09:26 GMT+1

Thanks for the suggestions.

Please note that a polyline in QCAD (DXF/DWG) is defined as a sequence of line segments and arc segments.
A hatch boundary on the other hand may contain line, arc, ellipse arc and spline segments.

Your best option at the moment might be:

  1. Select the hatch
  2. Use the property editor to change the 'Solid' property to 'yes'.
  3. Explode the solid fill: Modify - Explode (X,P) [⇒ See attached fix for Explode.js that ensures that arc segments are not converted into splines]
  4. This leaves you with the boundary elements of the hatch (lines, arcs and possibly splines)
  5. These loose boundary elements can be converted into a polyline if they consist of only lines and arcs: Draw - Polyline - Create from Segments
Comment by Stefan (stefan) - Tuesday, 17 April 2012, 09:43 GMT+1

that's just perfect for my use case, thank you!