DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

custom hatch patterns?

Started by SFA, September 23, 2014, 12:21:51 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

SFA

I am trying to create my own hatch patterns but editing DCHATCHC.SYS does not seem to work.

Any ideas?





SEMPER IN EXCRETIA

DrollTroll

Maybe you're formatting your hatch pattern wrong?

If you have an unmodified copy of Dchatchc.sys, paste these lines at the bottom:

BRASSX
2 45
0 0 0 0 25 40 0 0 0 0 0   
0 0 10 0 25 10 5 0 0 0 0

This should create a slightly modified version of the Brass hatch pattern called BrassX.

Also, be sure you re-start DesignCAD after you save any changes to Dchatchc.sys -- otherwise DesignCAD might not see the new patterns.
25 years with DesignCAD

DrollTroll

#2
Hatch format:

Line 1: Name
Line 2: Number of hatch line definitions, scale for preview
Line 3: Angle, origin x, origin y, offset x of repeated line, offset y of repeated line, dash length 1, gap length 1, dash length 2, gap length 2, dash length 3, gap length 3
Line 4: Angle of second line, origin x, origin y, offset x of repeated copy of line 2, offset y of repeated line 2, dash and gap lengths
Lines 5---- more lines for the pattern in the same format as lines 3 and 4.

In my BRASSX example below we have:
Line 1: BRASSX -- name
Line 2: 0 (angle of this line), 0, 0 (offset x and  y of this line from pattern's arbitrary origin), 0, 25 (offset x and y of the repeated copy of this line when the pattern repeats -- in this case, it's offset 25 units above the first copy), 40 (dash length 1), 0, 0, 0, 0, 0 (no gaps or other dashes, so this line is solid)
Line 3: 0 (angle of line 2), 0, 10 (offset x and y of this line from pattern's arbitrary origin -- 10 units above line 1), 0, 25 (offset x and y of repeated copy of this line when the pattern repeats -- again, 25 units above the first copy), 10, 5 (dash length 10, gap length 5), 0, 0, 0, 0 (no other gaps or dashes, so first dash repeats)
25 years with DesignCAD

DrollTroll

Oh yeah, I forgot about this one!

You can also create a .dch file with just one or two hatch patterns while you experiment -- this lets you play with smaller files and individual hatch patterns.
Ex: "Brassx.dch" would contain just the lines in the Brassx pattern two posts down. Once created and saved from a text editor, you can use File/Custom Hatch Pattern/Load to load your dch file.

I am attaching a small DCH file with two sample hatch patterns BRASSX and ZINGER.
25 years with DesignCAD

SFA

DT,

That is all perfect. Thank you very much.

Stan
SEMPER IN EXCRETIA

SciGraphics

Here's another idea that has worked for me. Choose a standard hatch pattern that already exists and is close to what you want. Then modify that entry until you get close enough to use. I've done this for work I do for Geologists and Anthropologists since nothing exists the those two fields.
Jim A., Tucson, AZ