PDA

View Full Version : Hatch


brm
08-23-2004, 01:32 AM
How i can create new hatch type?

Thom Ivancso
08-23-2004, 08:39 AM
Hello brm,

You can create special hatch patterns by writing a pattern definition macro and load it upon the startup of OSDD. I have an example below of a pattern.


DEFINE I_hatch_example
CURRENT_HATCH_PATTERN {Defines the current hatch pattern, which is the pattern used for newly created hatches.}
0 1 0 YELLOW SOLID {Offset / Distance / Angle / Color / Linetype}
0 1 45 GREEN DASHED
0 1 -45 RED DOT_CENTER
CONFIRM
END_DEFINE


Once you have written out the definition for the hatch and it is loaded into OSDD, run the I_hatch_example to load it as the current hatch pattern and hatch the geometry.

Also look at the following help topics.

CURRENT_HATCH_PATTERN
HATCH_ANGLE
HATCH_DIST
HATCH_REF_PT

I have also attached a jpeg of what the above pattern would look like when used.

Note: you can only use straight lines to create the patterns, unlike AuotCAD which can use different shaped geometry for creating items such as grass, rocks, wood, etc..

Hope this helps
Cheers
Thom