Draft: OCA
Draft OCA |
Posizione nel menu |
---|
Nessuno |
Ambiente |
Draft |
Avvio veloce |
Nessuno |
Introdotto nella versione |
- |
Vedere anche |
Nessuno |
Descrizione
Questa funzione importa i file OCA/GCAD. Il formato di file OCA è lo sforzo della comunità per creare un formato di file CAD libero, semplice e aperto.
Draft OCA is a software module used by the Std Open, Std Import and Std Export commands to handle the OCA file format.
OCA è in gran parte basato sul formato di file GCAD generato da gCAD3D. Entrambi i formati possono essere importati in FreeCAD e i file OCA esportati da FreeCAD possono essere aperti in gCAD3D.
Apri il file
Attualmente si importano i seguenti oggetti di OCA:
- Linee
- Archi e circonferenze
- Aree chiuse
Esporta il file
Gli oggetti che attualmente si possono esportare sono:
- Linee e spezzate (polilinee)
- Archi e circonferenze
- Facce
The following FreeCAD objects can be exported:
- Lines and wires (polylines)
- Arcs and circles
- Faces
Preferenze
Nella scheda Preferenze del menu Modifica → Preferenze → Draft si possono essere specificare i seguenti parametri:
- Importa aree chiuse o no
For more information see: Import Export Preferences.
Script
Vedere anche: Draft API e Nozioni di base sugli script di FreeCAD.
Si possono esportare elementi in Oca usando la seguente funzione:
importOCA.export(exportList, filename)
Esempio:
import FreeCAD, Draft, importOCA
p1 = FreeCAD.Vector(0, 0, 0)
p2 = FreeCAD.Vector(1000, 1000, 0)
p3 = FreeCAD.Vector(2200, 1500, 0)
p4 = FreeCAD.Vector(2500, -100, 0)
obj1 = Draft.makeWire([p1, p2, p3, p4])
obj2 = Draft.makeWire([p1, -2.3*p2, -0.8*p3, -1.8*p4])
objects = [obj1, obj2]
importOCA.export(objects, "/home/user/Pictures/myfile.oca")
- 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
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Assembly, BIM, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub