Ask questions about DataCAD 20, DataCAD LT 20, or previous versions here.
#65716 by GARY247
Tue Jan 27, 2015 9:18 pm
Is there any way to modify the hatch pattern drftstone so that some of the stones are white, some are dark grey and some are yellow so the hatch looks more hand drawn?
#65718 by Roger D
Wed Jan 28, 2015 8:32 am
While I believe one of the numbers in the hatch defintion is reserved for color, that has not been supported as far as I know.
I'd think the best you could do is to rewirte the one pattern, taking the lines you want and put into 2 new hatch patterns, and then hatch the area with the 3 hatch patterns, each one set to a different color.
#66538 by Mark F. Madura
Tue Jun 02, 2015 3:35 pm
In a DataCAD Hatch Pattern file, the line segments are defined as follows...
Code: Select all[Segments]
001=0, 0, 20, 0, 0, 0, 4, -3.9, 0.1
002=0, 0, 55, 0, 0, 0, 4, -3.9, 0.1
003=0, 0, 80, 0, 0, 0, 4, -3.9, 0.1
These are the entries for Cement.dhp.

The parameters are...

Segment No.=Line Weight, Line Color, Angle, X Offset, Y Offset, Delta X, Delta Y, and Line Pattern Segments

The Line Weight and Line Color parameters are not used. So you would need to put each segment into its own DHP file to use multiple colors.

Angle is defined in decimal degrees.

X Offset, Y Offset, Delta X, Delta Y, and the Line Pattern Segments are defined in decimal 32nds of an inch.

Delta Y is perpendicular (90 degrees clockwise) from Delta X.

A Line Pattern Segment value of 0 will cause DataCAD to draw a dot.

If the Line Pattern Segment values are omitted, DataCAD will draw a solid line.

Positive Line Pattern Segment values represent the lengths of lines to be drawn, while negative values represent spacing between line segments.
#66541 by GARY247
Tue Jun 02, 2015 5:24 pm
Mark you totally lost me as far as revising anything. What I am looking for is a hatch pattern for gravel where some of the stones are dark grey and some are yellow. To bad there is not a hatch pattern generator for Datacad to create hatches.
#66555 by Mark F. Madura
Wed Jun 03, 2015 9:57 am
Gravel1_Gravel2.png
Sorry about that Gary. We use HatchKit by Cadro to create complex hatch patterns ( http://www.hatchkit.com.au/ ).

I took our Gravel pattern and separated it into two hatch patterns, Gravel1 and Gravel2. You can use each one in a different color to hatch the same area using duplicate boundaries.
Attachments
Gravel1 and Gravel2
(16.47 KiB) Downloaded 673 times
#79031 by Richard Mauser
Tue Nov 10, 2020 7:24 pm
In the FWIW Dept,
I needed a hatch to do a syncopated shingle coursing alternating 2.75"/6.75", starting with the 2.75" course, and repeating every 9.5" vertically. This means the pattern has to have 2 different horizontal lines that repeat. Below is the hatch file I arrived at by adapting another DHP file, enduring some real trial and error learning. I named it after the job, and will modify and "save it as" for other jobs as the coursing varies.

[Header]
Scale=32
Angle=0
Display Scale=10
Segments=2

[Segments]
001=0, 0, 0, 0, 0, 0, 9.5, 1
002=0, 0, 0, 0, 2.75, 0, 9.5, 1

To repeat the instructions I found in the CheapTricks June '96 issue, in a format even I can understand,

1st number = line weight, which is always "0" in DataCAD
2nd number = line color, which is always "0" in DataCAD
3rd number = "Angle", in this case 0 degrees
4th number = start distance from the origin along the X-axis
5th number = start distance from the origin along the Y-axis
6th number = offset distance along the X-axis, after rotation, to the repeat (for solid lines, this number will always be zero)
7th number = offset distance along the Y-axis, after rotation, which is more often than not, your basic spacing distance
("after rotation" for a vertical line rotated 90º means the X and Y axes are cranked 90º counterclockwise, so X becomes what was Y, and Y becomes what was -X. The only way I can understand it is to crank my head onto my left shoulder to read the repeat offset X and Y.)
8th-13th numbers = describe the line to be repeated itself, the values alternating between positive "pen down" and negative "pen up", so you can have up to 3 different line segments before the pattern repeats.
The basic unit of distance here is 1 unit = 1/32nd of an inch.
Last edited by Richard Mauser on Mon Nov 16, 2020 6:01 pm, edited 2 times in total.
#79041 by Neil Blanchard
Wed Nov 11, 2020 4:45 pm
Thanks - I have referred to that Cheap Tricks article more times than I can remember. And I have done similar things, when I need a new hatch pattern - start with a similar pattern, and modify it, until it works. The most recent one is a large tile pattern that had 2 continuous horizontal lines, and 2 different sets of vertical lines that repeated for each of the horizontal courses:

Custom Hatch Pattern.png


The two tile sizes are 71" x 23" (!!!) and 17" x 26" - both are oddball sizes. Here's the file 23x71+17x26 Running Bond.DHP :

Code: Select all[Header]
Scale=1
Angle=0
Display Scale=1
Segments=4

[Segments]
001=0,0,0,0,0,0,1568
002=0,0,90,0,0,0,2272,0,736,-832
003=0,0,0,0,736,0,1568
004=0,0,90,0,736,0,544,0,832,-736
#79060 by Richard Mauser
Mon Nov 16, 2020 8:26 am
Thanks Neil,
I've saved that for future use. Like the Cheap Tricks article noted, it was hard to get my head around rotated lines in a pattern. Here, I think I made these correct. I should note that in the process of testing the patterns, I was having trouble getting the revised patterns to show when re-hatching a test hatch. I had to first delete the hatch, then purge the drawing (Hatch>Manage>Purge>OK) because the file hangs on to a hatch when it is deleted. As a young man, I had hangovers like that, which also required purging to prevent them. :D

Anyway, here are two patterns for pinwheeling tile patterns that are preset to 1" scale (I think - please jump in here to correct me on any of this) for 12" and 6" tiles. Someday I'll try to adjust them for, say 12" and 4" tiles, 12" and 3" tiles, etc.
----------------------------------------------
PinWhlL1-2.DHP
[Header]
Scale=32
Angle=0
Display Scale=10
Segments=2

[Segments]
001= 0, 0, 0, 0, 0, 18, 6, 18, -12
002=0, 0, 90, 6, 0, 12, -6, 18, -12
----------------------------------------------
PinWhlR2-1.DHP
[Header]
Scale=32
Angle=0
Display Scale=10
Segments=2

[Segments]
001= 0, 0, 0, 0, 0, 12, 6, 18, -12
002=0, 0, 90, 0, -6, 12, 6, 18, -12

Who is online

Users browsing this forum: No registered users and 22 guests

About DataCAD Forum

The DataCAD Forum is a FREE online community we provide to enhance your experience with DataCAD.

We hope you'll visit often to get answers, share ideas, and interact with other DataCAD users around the world.

DataCAD

Software for Architects Since 1984