Replies: 5 comments 1 reply
-
I've done some testing and I think I found the issue. This is the dxf hatch as it appear in the viewer. And this is the pdf hatch, it seems it misses a hatch scaling parameter, so the hatch is much denser than the dxf one. Is there a way to include a parameter for scaling the hatch? |
Beta Was this translation helpful? Give feedback.
-
After more testing and looking trough the code I found a solution. In the frontend.py file I added a line:
I can't see any issues with this change in the code. |
Beta Was this translation helpful? Give feedback.
-
Hi! Scaling the patterns works so far for all drawings I've tested and apparently for other users of the library as well. Therefore, your drawing is the exception and there must be a good reason and explanation why I should change the code of a stable part of the library. |
Beta Was this translation helpful? Give feedback.
-
Hi, maybe I did not explain well my situation. The pattern scaling works fine in the dxf, is when I make the pdf that the pattern comes out with a strange scaling, as you see in my second post I would have liked the pdf hatch (white background) to be the same as the dxf hatch (black background), I did not find a scaling attribute for the hatch in the configuration of the drawing addon, but maybe I missed it, if you can point it out for me I will definitely use that instead. Setting the scale to 1 in that point did not change the scaling in the dxf drawing (I can still change it as I like) but made the pattern in the pdf the same scale as the dxf. I hope to have explained better the situation. |
Beta Was this translation helpful? Give feedback.
-
My issue is that I put a pattern inside my dxf, scale it so it displays as I like and when I make the pdf I have a different pattern result and I don't understand why. My dxf is the A, with the pattern "GRAVEL" scaled to 50, I'm expecting that when I make the pdf it comes out like B, instead I have C and I don't understand why. Changing the scale before making the pdf could be a solution but change it to what? |
Beta Was this translation helpful? Give feedback.
-
Hi all, I'm having an issue with exporting as pdf a drawing with a hatch.
When I try to export as pdf the dxf I created, either with matpolotlib or pymupdf, with the configuration parameter hatch_policy=HatchPolicy.NORMAL it takes literally forever without creating the pdf file.
If I put a timeout of 10 seconds with hatching_timeout=10 then an alert comes out saying:
hatching timeout of 10s reached for HATCH(#None) - aborting
And then nothing else.
I tried to let it go for as long as 30 minutes without having a pdf.
No issues (less than 2 seconds to generate the pdf) if I put hatch_policy=HatchPolicy.SHOW_OUTLINE
This is the drawing, the hatch is the wall filling, nothing else.
Beta Was this translation helpful? Give feedback.
All reactions