Draft DXF/sv: Difference between revisions

From FreeCAD Documentation
(page)
 
(Updating to match new version of source page)
Line 1: Line 1:
[[Image:Screenshot qcad.jpg]]
[[Image:Screenshot qcad.jpg]]


===Öppna===
===Opening===
This function opens a DXF file (any version from 12 to 2007) in a new drawing.

The following DXF object types are currently supported:
Denna funktion öppnar en DXF fil (alla versioner från 12 till 2007) i en ny ritning.
Följande DXF objekttyper stöds för närvarande:
* lines
* lines
* polylines och lwpolylines
* polylines and lwpolylines
* circles
* circles
* arcs
* arcs
* layers (layers som innehåller objekt konverteras till FreeCAD Grupper)
* layers (layers containing objects are conveted to FreeCAD Groups)
* texts och mtexts
* texts and mtexts
* dimensions
* dimensions
* blocks (endast geometri. texter, dimensioner och attribut inuti block behandlas inte)
* blocks (only geometry. texts, dims and attributes inside blocks will be skipped)
* points {{Version|0.13}}
Andra DXF föremål importeras för närvarande inte eftersom det inte finns något motsvarande FreeCAD objekt. Allteftersom ny funktionalitet utvecklas, så kommer det att vara möjligt att importera fler föremålstyper.
* leaders {{Version|0.13}}

Other DXF entities are currently not imported because there is no corresponding FreeCAD object. As new functionality gets implemented, it will be possible to import more entity types.
===Importera===

Detta fungerar på samma sät som öppna, men kommer att addera dxf filens innehåll till det aktiva dokumentet istället för at skapa ett nytt.

===Exportera===


===Importing===
Den exporterade DXF filen är kompatibel med Autocad version 12 och upp, så den ska kunna öppnas i så gott som alla applikationer som stöder dxf formatet.
This works the same way as opening, but it will add the contents of the dxf file in the active documento instead of creating a new document.
För närvarande så exporteras följande FreeCAD objekt:
* linje och trådar (polylines)
* cirkelbågar och cirklar
* texter
* Färger konverteras från objektens RGB färger till autocad color index (ACI). Svart komme alltid att vara "by layer"
* lager konverteras från gruppnamn. När grupper är nästlade, så kommer lagret att får namnet på den djupaste gruppen.
* dimensioner, vilka exporteras med "Standard" dimensioneringsstil


===Alternativ===
===Exporting===
The exported DXF is compatible with Autocad version 12 and up, so it should open in about any application that supports dxf format.
Currently the following FreeCAD objects get exported:
* lines and wires (polylines)
* arcs and circles
* texts
* colors are mapped from objects RGB colors to autocad color index (ACI). Black will always be "by layer"
* layers are mapped from group names. When groups are nested, the deepest group gives the layer name.
* dimensions, which are exported with "Standard" dimstyle


===Preferences===
Följande parametrar kan specificeras i [[Draft Preferences/sv|Skissalternativ]] tabben (meny Redigera -> Alternativ -> Draft):
The following parameters can be specified in the [[Draft Preferences]] tab (menu Edit -> Preferences -> Draft):
* Import stil: Detta låter dig välja på vilket sätt som objekt från dxf filen kommer att ritas i FreeCAD. Du kan välja mellan:
* Import style: This lets you choose the way objects from the dxf file will be drawn in FreeCAD. You can choose between:
** None: detta är den snabbare sättet, ingen konvertering sker, alla objekt kommer att vara svarta med 2 pixels bredd (FreeCAD standard)
** 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: Alla importerade dxf objekt kommer at anta nuvarande linjebredd/färg från Skisskommandolådan
** Original color and linewidth: Objekten kommer att behålla den färg och linjebredd (om det är specificerat) de har i dxf filen
** Use default color and linewidth: All imported dxf 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 dxf file
** Colors mapped to linewidth: Om detta alternativ väljs så används kartfilen nedan.
** Colors mapped to linewidth: If this option is selected, the mapping file option below is used.
* Color mapping file: Denna tillåter dig att specificera en kartfil som ska användas för översättning av dxf färger till färg och linjebredd, på samma sätt som en plottningsstil fungerar i Autocad. Kartfilen måste vara en tabb-separerad textfil. Det finns ett bra fritt program som heter [http://www.noliturbare.com/TablePrintGUI.php Plot style viewer] som kan konvertera Autocad CTB eller STB (plottstilar) filer till tabb-separerade kartfiler, klara att användas i FreeCAD. Alternativt, så har vi några [[Draft_mapping_files/sv|hemgjorda kartfiler]] tillgängliga här.
* Color mapping file: This allows you to specify a mapping file to be used for translating dxf colors to color and linewidth, the same way as a plot style works in Autocad. The mapping file must be a tab-separated text file. There is a nice free utility called [http://www.noliturbare.com/TablePrintGUI.php Plot style viewer] that can convert Autocad CTB or STB (plot styles) files to tab-separated mapping files ready to use in FreeCAD. Alternatively, we have a couple of [[Draft_mapping_files|home-made mapping files]] availables here.
* Import texts: Detta tillåter dig att specificera om du vill importera dxf text och dimensioner eller inte. Många texter kan göra ditt arbete i FreeCAD mycket tungrott, så du kanske vill använda detta alternativ ibland.
* Import texts: This allows you to specify if you want to import dxf texts and dimensions or not. Many texts might make your work in FreeCAD very heavy, so you might want to use this option some time.
* Import layout objects: Sätt detta om du vill importera paper space objekt. De kommer att infogas i samma dokument som model space objekt.
* Import layout objects: Turn this on if you want to import paper space object. They will be merged in the same document than model space objects.


[[Category:User Documentation/sv]]
[[Category:User Documentation]]


<languages/>
{{languages/sv | {{en|Draft DXF}} {{es|Draft DXF/es}} {{fr|Draft DXF/fr}} {{it|Draft DXF/it}} }}

Revision as of 21:13, 14 February 2014

Opening

This function opens a DXF file (any version from 12 to 2007) in a new drawing. The following DXF object types are currently supported:

  • lines
  • polylines and lwpolylines
  • circles
  • arcs
  • layers (layers containing objects are conveted to FreeCAD Groups)
  • texts and mtexts
  • dimensions
  • blocks (only geometry. texts, dims and attributes inside blocks will be skipped)
  • points introduced in version 0.13
  • leaders introduced in version 0.13

Other DXF entities are currently not imported because there is no corresponding FreeCAD object. As new functionality gets implemented, it will be possible to import more entity types.

Importing

This works the same way as opening, but it will add the contents of the dxf file in the active documento instead of creating a new document.

Exporting

The exported DXF is compatible with Autocad version 12 and up, so it should open in about any application that supports dxf format. Currently the following FreeCAD objects get exported:

  • lines and wires (polylines)
  • arcs and circles
  • texts
  • colors are mapped from objects RGB colors to autocad color index (ACI). Black will always be "by layer"
  • layers are mapped from group names. When groups are nested, the deepest group gives the layer name.
  • dimensions, which are exported with "Standard" dimstyle

Preferences

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 dxf 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 dxf 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 dxf file
    • Colors mapped to linewidth: If this option is selected, the mapping file option below is used.
  • Color mapping file: This allows you to specify a mapping file to be used for translating dxf colors to color and linewidth, the same way as a plot style works in Autocad. The mapping file must be a tab-separated text file. There is a nice free utility called Plot style viewer that can convert Autocad CTB or STB (plot styles) files to tab-separated mapping files ready to use in FreeCAD. Alternatively, we have a couple of home-made mapping files availables here.
  • Import texts: This allows you to specify if you want to import dxf texts and dimensions or not. Many texts might make your work in FreeCAD very heavy, so you might want to use this option some time.
  • Import layout objects: Turn this on if you want to import paper space object. They will be merged in the same document than model space objects.