Got the repetive nature by PM.
Simply 10 up/down and 10 aside.
For start, we have two verticals that repeat up/down.
With angle = 90, start (x,y), on state, off state (magenta).
The offset along the line is 0 and the ortho offset is 10.
Kept it simple and approximated the arcs by 9 segments.
I only use the flatten apex of the arcs.
So, we have two horizontals that repeat across.
With angle = 0, start (x,y), on state, off state (magenta).
The offset along the line is 0 and the ortho offset is 10.
Next, drew a ray (blue) that connects the right ref. of the lower flat apex with the repetition that sits 1 up, 3 right (1).
The circle chord is the next segment and the length is the on state.
This segment is repeated.
The distance between two colinear chords is the off state (magenta).
Next, drew a ray that connect the right ref. of the second chord with the one that sits 2 up, 3 right (2).
Again, this new chord is the next segment.
And so on.
The last ray (6) is pointed to the one that sits 11 up 1 right.
Remark that in the 45 and 135 degree orientation I use the 1 up, 1 right instead of 3/3 or 2/2.
The last chord does not connect properly with the vertical.
The verticals are trimmed (lengten).
The 6 chords and most we need can simply be moved, mirrored and/or rotated 180.
That will give us 24 chord segments.
With angle, start (x,y), on state, off state (magenta).
Turns out that the arcs are finally approximated by 13 segments.
Now it is simply the question to add the offset along the line (dark yellow) and the ortho offset (yellow) for each.
I used the shape 1 above to determine these values.
When I stepped across by 2 or by 3 the definitions have to be repeated by posX+10 and by posX+10 and posX+20.
In the vertical direction I only stepped by 1, so there is no need to repeat definitions in that direction.
The file is called <Test_MPN.pat>.
Inside the file the hatch name is set on the first line after an asterisk (*).
Set as <Test_MPN>.
Further details I posted here:
https://qcad.org/rsforum/viewtopic.php? ... 325#p25325
Pat files may include different hatches starting with *pattern-name
But this is not common in Qcad.
I added the construction dxf.
In case you might find 13 segments too coarse, you need to refine this.
This was a fun test aside the fact one can source freely many hatches online.
- Test_MPN.pat.png (14.15 KiB) Viewed 10640 times
IsoHorizontal?? ... Insulation ... Horizontal.
Insulation one can find plenty online.
Orientation has no meaning, hatches can be oriented from 0-360 degrees.
Regards,
CVH