Ever wanted to know how to perform a specific operation? Ask the experts.
#76589 by John Daglish
Fri Jun 28, 2019 3:16 pm
I would like to convert all the brick hatches (single line and joint modeled) in DCAD into english/euro metric size of L x w x h 215 x102.5 x 65 with a 10mm joint.
If anyone has done this I would be grateful of a copy. Otherwise any suggestions on converting other than getting Hatchkit program?
#76595 by Mark Bell
Sat Jun 29, 2019 10:11 pm
What we've done in the past with similar Imperial to Metric hatching is, as an example using say 24x48 tile which translates to 609.6 x 1219.2 is:

1. After drawing the standard associative hatch, simply divide 1200/1219.2 = 0.984251968503937,
2. In Hatching/Scale, enter 0.984251968503937,
3. Select the associative hatching and its scaling will change to metric sizing. Note, you can also set the hatch origin (S4) to align tiling. We've done this using CMU to set the coursing to metric,

You can also create and save your own hatching already at the correct metric scale using the F7 Manage (Hatch Pattern Manager). Just select the hatch pattern and enter the new scale then save it as a unique name.
#76597 by dhs
Sat Jun 29, 2019 11:57 pm
You can also create and save your own hatching already at the correct metric scale using the F7 Manage (Hatch Pattern Manager).

Mark is correct, and that should work reasonably well in this case, as the brick size that you asked about is not dis-similar in proportions to the 'standard' brick that is represented in the supplied brick hatch patterns.

But the proportions are not identical, so if you really want to modify the existing hatch patterns you can do so with a text editor. The hatches are defined in .dhp files in the Support Files/hatch folder.
There is an old Cheap Tricks article about defining hatch patterns that may be of interest. The article refers to an obsolete config file, but I believe the discussion of the actual line segment definitions is still applicable.

As an example, the line segment definitions in the supplied Brick.DHP file are as follows:
Code: Select all[Segments]
001=0, 0, 0, 0, 0, 0, 2.666667
002=0, 0, 90, 0, 0, 2.666667, 4, 2.666667, -2.666667

There is only 1 non-zero parameter in line 001, and that is the 7th parameter which defines the y spacing. So this line defines a solid horizontal line that repeated vertically every 2.666667 units.
Line 002 is a little more complex:
  • the 3rd parameter (90) refers to the angle of the line (thus it defines vertical lines).
  • the 6th parameter defines the offset for each repeat of the line. This is the offset along the direction of the line, so as this line is vertical it is offset 2.666667 units along the y-axis with each repeat.
  • the 7th parameter (4) defines the repeat spacing (since our line is vertical, this the the x spacing between line repeats).
  • the subsequent parameters define pen up/down segments of the line. A negative number means pen up for that distance, a positive number means pen down.
This hatch pattern therefore defines bricks that are of the proportion 8 units long to 2.666667 units high (8 units long because the vertical lines offset by 2.666667 units with each repeat, so although they are repeated every 4 units the pen-up segment will be in each course of brickwork for every other line). This proportion ( 8 / 2.666667) equals approx 3 which is the same as the standard brick face proportion (230mm / 76mm is also very close to 3).

If you wanted to alter the proportions of the bricks you could do so by changing the numbers in the hatch file segments definition. Increasing all the '2.666667' numbers (or decreasing the '4') would result in a wider brick face, reducing the '2.66667' values (or increasing the '4') would result in a longer brick face.

Ignoring the 10mm joint for this example, you want a proportion of 215/65, or about 3.3. You could change all the '2.666667' numbers to '2.424242' to achieve the correct proportion, but I think it is more understandable to use the actual numbers. You could change all the '2.666667' ot '65' and change the '4' to '107.5' (i.e. 215/2) ... this would give the correct proportion, but would need to be appropriately scaled as datacad uses units of 1/32" but you want mm. Converting the metric distances to 1/32" units would produce the following hatch definition:
Code: Select all[Header]
Scale=1
Angle=0
Display Scale=10
Segments=2

[Segments]
001=0, 0, 0, 0, 0, 0, 78.11023622047244
002=0, 0, 90, 0, 0, 78.11023622047244, 135.4330708661417, 78.11023622047244, -78.11023622047244   

Hope the above is helpful. I've attached a file with the above definition. Modifying other relatively simple existing hatches should not be too difficult using a text editor.

Regards,
David H.
Attachments
(261 Bytes) Downloaded 8 times
#76598 by dhs
Sun Jun 30, 2019 12:13 am
... actually, I went 1 step too far in my previous post :? . It is probably easier and more understandable to define the hatch using the actual mm sizes (instead of 1/32" units) but to use the Scale parameter to convert to mm (a value of 1.259842519685039 should achieve this) :
Code: Select all[Header]
Scale=1.259842519685039
Angle=0
Display Scale=10
Segments=2

[Segments]
001=0, 0, 0, 0, 0, 0, 65
002=0, 0, 90, 0, 0, 65, 107.5, 65, -65   
Attachments
(251 Bytes) Downloaded 10 times
#76601 by John Daglish
Mon Jul 01, 2019 3:02 am
Thanks for the info and examples, especially using mm and the scale definition.

It is more straightforward for the single line brick joint definitions but becomes much more complex for the 2 line brick joint definitions with 64 or more segments.
#76606 by dhs
Mon Jul 01, 2019 10:20 pm
... much more complex for the 2 line brick joint definitions with 64 or more segments

Typical of a machine generated pattern to use more code than required....
Attached is a 2 line brick hatch pattern for your metric bricks showing 5 stretcher rows per 1 header row (using 14 segments compared to the 64 for the equivalent standard hatch).
Attachments
(655 Bytes) Downloaded 9 times

Who is online

Users browsing this forum: No registered users and 7 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 AEC Professionals Since 1984