New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] DraftView - line style property not working #6733
Comments
This has to be fixed on the Draft/Arch side, I believe. |
If you take the text of DraftView's Symbol property and give it to Inkscape you will get what looks like solid lines. Inkscape will tell you that in fact you have a line with a custom dash property, which is correct. The issue is this code "stroke-dasharray:0.09,0.05" in the style attribute. This code creates a dashed line made up of very small dashes separated by very small gaps. The result appears as a continuous line. |
The LineStyle property is working. The problem is that SVG is a bit delicate with line patterns... It gets scaled if placed inside a scaled group. The Draft get_svg() function normally takes care of this, at https://github.com/FreeCAD/FreeCAD/blob/master/src/Mod/Draft/draftfunctions/svg.py#L52 but it still depends on what defaults are set under Edit->Preferences->Draft->Visual settings. So far I've been unable to find values that work for everyone. Some values work when you are working on a model of a building, but not when working on a screw model... Not really sure how to handle this... Maybe the whole system needs to be redone with something more accurate, like "I want 3mm dashes with a 1mm spacing" and FreeCAD would do the whole calculation up to the printed sheet... |
@yorikvanhavre I try several numbers in both attributes and still no luck to see the dashed line :) Thanks. |
SVG patterns refer to Draft Patterns. Why do you think these settings are related? |
Just wild guess, the only two inputs with figures looks like multiplier ? |
@yorikvanhavre do you mind revisiting this ? |
On it! |
Looks good :) |
Draft: Better svg linestyle settings - fixes #6733
Is there an existing issue for this?
Forums discussion
https://forum.freecadweb.org/viewtopic.php?f=35&t=67928
Version
0.20 (Development)
Full version info
Subproject(s) affected?
Techdraw
Issue description
DraftView objects have the Line Style property but it doesn't work - there's no drop-down list for it and typing in the style name (e.g. "Dashed") does nothing. Such property can be useful to turn draft objects to annotations.
The style of original Draft objects being turned into views is also not considered so there is no way to change the style of lines created by the DraftView tool.
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: