Draft SVG
Entwurf SVG |
Menüeintrag |
---|
- |
Arbeitsbereich |
Entwurf |
Standardtastenkürzel |
- |
Eingeführt in Version |
- |
Siehe auch |
- |
Beschreibung
Draft SVG is a software module used by the Std Open, Std Import and Std Export commands to handle the SVG file format.
Inkscape drawing exported to SVG, which is subsequently opened in FreeCAD
Importieren
Die folgenden SVG Objekte können importiert werden:
- PFAD Objekte
- LINIE Objekte
- RECHTWINKLIG Objekte
- KREIS Objekte
- ELLIPSE Objekte
- POLYGON Objekte
- POLYLINIE Objekte
Begrenzungen
FreeCAD will not import path objects that have only one point (forum discussion).
Exportieren
Die folgenden FreeCAD Objekte können exportiert werden:
- Linien und Drähte (Polylinien)
- Bögen und Kreise
- Flächen
- Texte
- Abmessungen
Begrenzungen
SVG ist ein 2D Format, daher werden alle Z Informationen nicht berücksichtigt (alle Objekte werden abgeflacht).
Einheiten Handhabung
Beim Export ist eine Benutzereinheit (px) gleich einem Millimeter.
Beim Importieren werden die Attribute Breite, Höhe und Ansichtskasten beachtet. Alle Elemente werden auf ihre Größe in Millimeter skaliert, was der internen FreeCAD Einheit entspricht. Wenn das SVG keine Informationen über seine physikalische Größe enthält, wird angenommen, dass es eine Auflösung von 90 DPI hat. Die Verwendung von absoluten Einheiten in den Attributen innerhalb der SVG sollte vermieden werden. Relative Einheiten wie em,ex und % werden derzeit nicht unterstützt.
The Inkscape SVG Editor currently works only with 90 DPI documents. No matter which unit is selected in Inkscape. All the output has to be considered converted to 90 DPI and rounded to 6 decimal places. As FreeCAD (and the SVG standard) is agnostic to the precision of rounding done in Inkscape these values will not be rounded on input. And odd values in millimeter will remain. If you need the SVG import not to be rounded, work on User Units (px) in Inkscape. Scaling can be done after the import to FreeCAD or by changing the width, height and viewbox attributes.
Einstellungen
Für weitere Informationen siehe: Import Export Einstellungen.
Skripten
Scripting
Siehe auch: Entwurf API und FreeCAD Grundlagen Skripten.
Du kannst Elemente durch die folgende Funktion nach DXF exportieren:
importSVG.export(exportList, filename)
Beispiel:
import Draft, importSVG
Polygon1 = Draft.makePolygon(3, radius=500)
Polygon2 = Draft.makePolygon(5, radius=1500)
objects = [Polygon1, Polygon2]
importSVG.export(objects, "/home/user/Pictures/myfile.svg")
- Drafting: Line, Polyline, Fillet, Arc, Arc by 3 points, Circle, Ellipse, Rectangle, Polygon, B-spline, Cubic Bézier curve, Bézier curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation styles, Annotation scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar array, Circular array, Path array, Path link array, Point array, Point link array, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select plane, Set style, Toggle construction mode, AutoGroup
- Snapping: Snap lock, Snap endpoint, Snap midpoint, Snap center, Snap angle, Snap intersection, Snap perpendicular, Snap extension, Snap parallel, Snap special, Snap near, Snap ortho, Snap grid, Snap working plane, Snap dimensions, Toggle grid
- Miscellaneous: Apply current style, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
- Erste Schritte
- Installation: Herunterladen, Windows, Linux, Mac, Zusätzlicher Komponenten, Docker, AppImage, Ubuntu Snap
- Grundlagen: Über FreeCAD, Graphische Oberfläche, Mausbedienung, Auswahlmethoden, Objektname, Programmeinstellungen, Arbeitsbereiche, Dokumentstruktur, Objekteigenschaften, Hilf FreeCAD, Spende
- Hilfe: Tutorien, Video Tutorien
- Arbeitsbereiche: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework