Posted by
LordOfBikes on
Sep 29, 2013; 1:16pm
URL: https://forum.librecad.org/bugs-problems-when-using-selfmade-hatches-tp5708894p5708911.html
Hi,
here are some answers to your hatch problem:
no hatch is created:
Your hatch pattern size is about 70x25.
The hatch contour size is about 4200x2900.
There is a fix limit in LC to avoid huge memory and time consumption.
This limit is 100 in both directions. That means your pattern fits in Y direction more than 100 times and is therefore abandoned.
The problem is that the message in the output window tells you the hatch was created successfully. I will change this, that an error message will appear instead.
To solve this problem, change the factor when applying the pattern or create a bigger pattern file, which fits better to the drawing dimensions.
expected result with hatch_rect2.dxf:To achieve the expected result add small lines left/bottom and top/right, look down to the misc3.dxf part.
I haven't look deeply in, but for me it look like this:
The fist patter is draw in the origin at 0,0 and for the iteration the absolute size of the pattern is used.
I'm not sure if this is a bug or misinterpreted rules, but as there is a workaround, I think we shouldn't touch this until release of 2.0.0.
pattern brick.dxf and daemon.dxf:This is a matter of layers. When reading the hatch pattern, LC uses the active layer. In these two pattern files the active layer is empty and therefore no hatch is created. To avoid this, use only one layer to draw the pattern and delete all unused layers.
Because this pattern files are part of the LC package I will change and update them on github.
misc03.dxf:I expect, that these two points are the attempt to reach the behaviour of the right image. The current implementation ignores the points, which results in the pattern of the left image.
To achieve the right image behaviour replace the points by small line entities, 0.1 or even smaller.
arcs.dxf:Can't reproduce the behaviour you documented, don't know what you mean with this.
Armin
investing less than half an hour into Search function can save hours or days of waiting for a solution