Writing custom Hatch pattern
Termitt
4/3/2008 7:21 PM
|
---|
Hi all,
i have problem writing DXF with Hatch-Custom Pattern.
When I use Pattern = null (not set), then DXF can be displayed in ACAD.
But when I try to use custom Pattern, then DXF writing fails.
Sometimes with 'OutOfMemory Exception':
C# Code:  at System. C# Code: DxfPattern pat = new DxfPattern( |
Wout
4/4/2008 12:38 AM
|
---|
Hi Termitt,
I think the problem is that you chose the pattern line's offset vector having the same angle as the pattern angle. The vector must at least have a component perpendicular to the pattern angle otherwise no hatching will happen ofcourse, the hatch line will just continue to be on the same line.
Here's a working example (but see also the DxfHatch documentation contains a working example):
C# Code: using System; |
Termitt
4/4/2008 9:27 PM
|
---|
Hi Wout,
now it works, great.
I know about example in documentation, I have read it several times, but i never realized that i made a mistake in Offset direction ; ).
Thank you for help,
Termitt
|