Draft SVG: Difference between revisions

From FreeCAD Documentation
(→‎Preferences: Export Style Translated/Raw)
Line 33: Line 33:


The following parameters can be specified in the [[Draft Preferences]] tab (menu Edit -> Preferences -> Draft):
The following parameters can be specified in the [[Draft Preferences]] tab (menu Edit -> Preferences -> Draft):
* Import style: This lets you choose the way objects from the svg file will be drawn in FreeCAD. You can choose between:
* Import/Export -> Import style: This lets you choose the way objects from the svg file will be drawn in FreeCAD. You can choose between:
** None: this is the faster way, there is no conversion, all objects will be black with 2px width (FreeCAD default)
** None: this is the faster way, there is no conversion, all objects will be black with 2px width (FreeCAD default)
** Use default color and linewidth: All imported objects will take current linewidth/color from the draft command bar
** Use default color and linewidth: All imported objects will take current linewidth/color from the draft command bar
** Original color and linewidth: Objects will keep the color and linewidth (if specified) they have in the svg file
** Original color and linewidth: Objects will keep the color and linewidth (if specified) they have in the svg file
* Import/Export -> Export Style:
* Internal precision level:
** Translated: All elements a translated that their coordinates are positive. This should aid display and printing. The output coordinate system is NOT cosistent between individualy exported elements.
** Raw: The position of all elements preserved. This intended for CAM usage for example in PyCAM. Layers or Slices exported individualy will match.
* General settings -> Internal precision level:
** This value is used to check if a bezier curve segement has to be considered as a straight line.
** This value is used to check if a bezier curve segement has to be considered as a straight line.
** If you import detailed paths, like rendered text, you may want to increase this setting up to 6.
** If you import detailed paths, like rendered text, you may want to increase this setting up to 6.

Revision as of 12:44, 2 March 2012

Opening

This function imports SVG files as workable 2D objects, in opposition to the built-in drawing module which imports svg files as sheet drawings. The following SVG objects get imported at the moment:

  • PATH objects
  • LINE objects
  • RECT objects
  • CIRCLE objects
  • ELLIPSE objects
  • POLYGON objects
  • POLYLINE objects

Importing

Works the same way as opening but creates the objects in the active document instead of creating a new one.

Exporting

The following objects can be exported in an SVG file:

  • Lines and wires (polylines)
  • Arcs and circles
  • Faces
  • Texts
  • Dimensions

Keep in mind that SVG is a 2D format, so all Z information will be disregarded (all objects will be flattened).

Preferences

The following parameters can be specified in the Draft Preferences tab (menu Edit -> Preferences -> Draft):

  • Import/Export -> Import style: This lets you choose the way objects from the svg file will be drawn in FreeCAD. You can choose between:
    • None: this is the faster way, there is no conversion, all objects will be black with 2px width (FreeCAD default)
    • Use default color and linewidth: All imported objects will take current linewidth/color from the draft command bar
    • Original color and linewidth: Objects will keep the color and linewidth (if specified) they have in the svg file
  • Import/Export -> Export Style:
    • Translated: All elements a translated that their coordinates are positive. This should aid display and printing. The output coordinate system is NOT cosistent between individualy exported elements.
    • Raw: The position of all elements preserved. This intended for CAM usage for example in PyCAM. Layers or Slices exported individualy will match.
  • General settings -> Internal precision level:
    • This value is used to check if a bezier curve segement has to be considered as a straight line.
    • If you import detailed paths, like rendered text, you may want to increase this setting up to 6.
Available translations of this page: Template:Se