Difference between revisions of "Fcstd file format"

From FreeCAD Documentation
Jump to: navigation, search
m (lien sur "File_Format_FCStd")
(#REDIRECT File_Format_FCStd)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The '''FreeCAD Standard file format''' (.fcstd) is FreeCAD's main file format. It is a compound format, supports compression and embedding of different kinds of data.
+
#REDIRECT [[File_Format_FCStd]]
 
 
A .fcstd file is in truth nothing else than a .zip file containing .xml files and data files. The .xml files organize the structure of the saved document and how the other data files must be used. In fact, you can always rename a .fcstd file with the .zip extension and open it with any zip application.
 
 
 
This is the [[File_Format_FCStd|structure of a typical fcstd]] file:
 
 
 
--File.fcstd
 
  |
 
  --Document.xml
 
  --GuiDocument.xml
 
  |
 
  --Thumbnails
 
    |
 
    --thumbnail.png
 
  |
 
  --Templates
 
    |
 
    --MyPage.svg
 
  --Shape1.brep
 
  --Shape2.brep
 
  --etc...
 
 
 
(TODO: change this by a nice image)
 
 
 
==Contents of a .fcstd file==
 
 
 
===Document.xml===
 
 
 
This is the main xml file describing all the objects inside a FreeCAD document, that is, only the geometric and parametric definition of the objects, not their visual representation. If FreeCAD is ran in console mode (without the GUI), only this xml document will be used.
 
 
 
===GuiDocument.xml===
 
 
 
This is the GUI counterpart of the Document.xml file. For each object described in the Document.xml, there is one corresponding object in GuiDocument.xml, describing the visual representation of that object (color, linewidth, etc).
 
 
 
===Thumbnails/thumbnail.png===
 
 
 
This is a 128x128 pixels thumbnail image of the document, which is a screenshot of the 3D view at save time. Thumbnails are generated only if the corresponding option is enabled in the FreeCAD preferences.
 
 
 
===Templates/*.svg===
 
 
 
In the Templates folder are stored the template svg files used in [[Drawing module|Drawing]] pages.
 
 
 
===*.brep===
 
 
 
These are the .brep shapes of all objects that have a Part shape in the Document.xml. Each object, even if it is parametric, has its shape stored as an individual .brep file, so it can be accessed by components without the need to recalculate the shape.
 
 
 
{{languages | {{es|Fcstd_file_format/es}} {{it|Fcstd_file_format/it}} }}
 

Latest revision as of 21:01, 6 April 2015

Redirect to: