yorik wrote:The ideal way would be using SVG patterns. This is by far the most advanced and powerful hatching system. You encapsulate any kind of SVG elements inside a pattern, give it an id, then any element can by filled with that pattern giving its id to the fill property. Simple as that. Unfortunately, Qt doesn't support svg patterns. I had seen somewhere that Qt5 would, but apparently it didn't happen.
The best we could do right now would be to postprocess the Qt generated svg file and add the pattern elements to it. Then at least they'd be in the file when you opened it in Inkscape.
Looking inside the generated file, I don't see anything that would allow you to match chunks of svg back to the source views. A label or a comment would be nice.
I think wandererfan's approach is the best for now, because using bitmap fills works similarly, and should be relatively easy to convert to svg patterns the day we find a way to support it...
Very similar. If the hatch filespec ends in svg, we use the existing mosaic tiling solution. If it ends in png/jpg, we use Qt's bitmap fill functions (which is a mosaic tile solution internally).
That said, I'm going to implement an additional system similar to AutoCad PAT or the PTC Pro-E Wild Fire/ Creo approach @Jee-Bee mentioned. That will satisfy the hardcore mechanical drawing requirement and the svg/bitmap approach will handle the more artistic requirements.