export svg into inkscape
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
export svg into inkscape
OS: Linux Mint 16 Petra
Platform: 64-bit
Version: 0.13.1830 (Git)
Branch: releases/FreeCAD-0-13
Hash: ec7636d7aaf2612e9b43cff5d6a424037d53e505
Python version: 2.7.5+
Qt version: 4.8.4
Coin version: 4.0.0a
SoQt version: 1.5.0
OCC version: 6.5.4
I have noticed some thing strange when exporting a sketch from freecad into inkscape. The imported sketch into inkscape is slightly underscale.
For example a simple sketch of a 30mm square will around 29mm when imported into inkscape. Not sure of where the problem lies could be freecad or inkscape.
attched is a screen shot of inkscape. the black square is imported from freecad the red square drawn in inkscape showing the differance.
any ideas on how to get the import to be exactly to scale?
Thanks
Gavin
Platform: 64-bit
Version: 0.13.1830 (Git)
Branch: releases/FreeCAD-0-13
Hash: ec7636d7aaf2612e9b43cff5d6a424037d53e505
Python version: 2.7.5+
Qt version: 4.8.4
Coin version: 4.0.0a
SoQt version: 1.5.0
OCC version: 6.5.4
I have noticed some thing strange when exporting a sketch from freecad into inkscape. The imported sketch into inkscape is slightly underscale.
For example a simple sketch of a 30mm square will around 29mm when imported into inkscape. Not sure of where the problem lies could be freecad or inkscape.
attched is a screen shot of inkscape. the black square is imported from freecad the red square drawn in inkscape showing the differance.
any ideas on how to get the import to be exactly to scale?
Thanks
Gavin
Re: export svg into inkscape
Have you checked the object properties to make sure of its dimensions? Might it not be that the imported object has an outline width of zero?
Re: export svg into inkscape
After quick test i would say size depends on 3D view zoom factor? If that is true maybe there is a trick where you could set it to "1:1". If not i would guess you will have to do re-scaling in Inkscape.
Re: export svg into inkscape
The most reliable method is to create a view in a Drawing page with a template and save this page. The objects in the drawing have the original dimension in mm also in inkscape, if the scale is set correct.
Exporting an object as Flat-svg adds a margin of 1% or something around the object.
Ulrich
Exporting an object as Flat-svg adds a margin of 1% or something around the object.
Ulrich
Re: export svg into inkscape
would this be a bug or a feature? I think its a bug as the 1 percent seems random
Re: export svg into inkscape
It is at least intentionally encoded in the Draft workbench code for the export of a flattened SVG.thegavs wrote:would this be a bug or a feature? I think its a bug as the 1 percent seems random
It may be usefull for printing that object, but I see also a disadvantage in using it for other purposes.
Ulrich
Re: export svg into inkscape
We got different modes of SVG export for different purposes.ulrich1a wrote:It may be usefull for printing that object, but I see also a disadvantage in using it for other purposes.
Exporting the 3D view, will probably break the scale.
The flattened SVG output has two modes. One for display and printing and one for CAM. Both try to keep the scale. The latter one keeps the the absolute position as well.
Export of the a drawing is yet another mode of SVG output.
I'm willing to improve the SVG exporter. But I need to know what you are trying to achieve with the SVG.
Re: export svg into inkscape
I was not aware of the two modes. How would I get the CAM output mode? Is there a switch somewhere?shoogen wrote:The flattened SVG output has two modes. One for display and printing and one for CAM.
The flattened SVG without margin or even better with a user defined size in the export dialog has advantages, if you want to combine several of them in one technical SVG-drawing. I like also to try to define hatching patterns with a mm-scale. Those should have advantages in cases were the hatching needs to be scaled by millimeters.
It opens also the way to define SVG-symbols for drawings directly in FreeCAD.
Ulrich
Re: export svg into inkscape
It is in the Draft Preferences http://www.freecadweb.org/wiki/index.ph ... referencesulrich1a wrote:I was not aware of the two modes. How would I get the CAM output mode? Is there a switch somewhere?shoogen wrote:The flattened SVG output has two modes. One for display and printing and one for CAM.
Re: export svg into inkscape
This makes me think we really should do something about these import/export formats one day... Users are usually not aware of which module which exporter belongs to, so finding documentation and preferences can be hard... But that's a subject for a separate thread.