Structura unui document/fișier în FreeCAD

From FreeCAD Documentation
Revision as of 21:37, 2 December 2013 by Renatorivo (talk | contribs) (Created page with "Ca orice altceva in FreeCAD, partea de interfata cu utilizatorul (GUI) sete separata de partea de aplicatie (App). Acest lucru este adevarat si pentru documente. Acestea sun s...")

Un document FreeCAD contine toate obiectele din scena. Poate contine grupuri si obiecte realizate cu oricare paleta.Ca urmare paletele pot fi schimbate fara a parasi documentul. Continutul documentului este cel salvat pe disc. Mai multe documente pot fi deschise in acelasi timp si mai multe vizualizari al aceluiasi document pot fi deschise in acelasi timp.

Inauntrul documentului obiectele pot fi mutate in grupuri si au un nume unic. Administrarea obiectelor, a grupurilor de obiecte si a numelor obiectelor se face in primul rand dn vizualizarea arborescenta. Toate acestea pot fi realizate ca orice altceva in FreeCAD, folosind script-uri Python. In vizualizarea arborescenta se pot crea grupuri, muta obiecte in grupuri, sterge obiecte sau grupuri folosind meniul contextual (click dreapta cu mouse-ul). Redenumirea obiectelor se face cu dublu-click pe obiect. Este posibil sa existe si alte actiuni permise in functie de tipul obiectului si paleta curenta.

The objects inside a FreeCAD document can be of different types. Each workbench can create its own types of objects, for example the Mesh Workbench creates mesh objects, the Part Workbench create Part objects, the Draft Workbench also creates Part objects, etc.

Daca este cel putin un document deschis in FreeCAD, atunci exact un document este activ. Acesta este documentul care apare in vizualizarea 3D curenta, documentul cu care lucrati in mod curent.

Aplicatia si Interfata cu Utilizatorul

Ca orice altceva in FreeCAD, partea de interfata cu utilizatorul (GUI) sete separata de partea de aplicatie (App). Acest lucru este adevarat si pentru documente. Acestea sun si ele alcatuite din doua parti: partea de aplicatie, ce contine obiecte, si partea de vizualizare, ce contine reprezentarea grafca a obiectelor.

Think of it as two spaces, where the objects are defined. Their constructive parameters (is it a cube? a cone? which size?) are stored in the Application document, while their graphical representation (is it drawn with black lines? with blue faces?) are stored in the View document. Why is that? Because FreeCAD can also be used WITHOUT graphical interface, for example inside other programs, and we must still be able to manipulate our objects, even if nothing is drawn on the screen.

Another thing that is contained inside the View document are 3D views. One document can have several views opened, so you can inspect your document from several points of view at the same time. Maybe you would want to see a top view and a front view of your work at the same time? Then, you will have two views of the same document, both stored in the View document. Creating new views or closing views can be done from the View menu or by right-clicking on a view tab.

Scripting

Documents can be easily created, accessed and modified from the python interpreter. For example:

FreeCAD.ActiveDocument

Will return the current (active) document

FreeCAD.ActiveDocument.Blob

Would access an object called "Blob" inside your document

FreeCADGui.ActiveDocument

Will return the view document associated to the current document

FreeCADGui.ActiveDocument.Blob

Would access the graphical representation (view) part of our Blob object

FreeCADGui.ActiveDocument.ActiveView

Will return the current view

Mouse Model
Preferences Editor