Architektura: Obmiar

From FreeCAD Documentation
Revision as of 07:37, 5 May 2024 by Kaktus (talk | contribs) (Created page with "==Własności dynamiczne==")

Architektura: Obmiar

Lokalizacja w menu
Architektura → Obmiar
Środowisko pracy
Architektura
Domyślny skrót
brak
Wprowadzono w wersji
-
Zobacz także
Wyposażenie

Opis

Narzędzie Obmiar umożliwia tworzenie i automatyczne wypełnianie arkusza kalkulacyjnego zawartością zebraną z modelu.

Note: Narzędzie to zostało przepisane w FreeCAD 0.17 i różni się od poprzednich wersji.

Aby uzyskać bardziej ogólne rozwiązanie, zapoznaj się z środowiskiem pracy Reporting Workbench na liście zewnętrznych środowisk pracy. To środowisko pracy używa składni SQL do wyodrębniania informacji z dokumentu.

Użycie

  1. Otwórz lub utwórz dokument FreeCAD zawierający kilka obiektów.
  2. Naciśnij przycisk Obmiar.
  3. Dostosuj żądane opcje.
  4. Naciśnij przycisk OK.

Przepływ pracy

Najpierw musisz mieć model. Na przykład tutaj jest dokument z kilkoma obiektami Architektury, ale inne obiekty są również obsługiwane.

Następnie należy nacisnąć przycisk Obmiar. Pojawi się następujący panel zadań. Jest on dość szeroki, więc będziesz musiał poszerzyć panel zadań, aby czuć się komfortowo.

Następnie można wypełniać wiersz po wierszu. Każdy wiersz jest "zapytaniem" i wygeneruje jeden wiersz w arkuszu kalkulacyjnym. Naciśnij przycisk Dodaj, aby dodać nowy wiersz i kliknij dwukrotnie każdą komórkę z tego wiersza, aby wypełnić wartości. Przycisk Usuń usunie wiersz zawierający aktualnie zaznaczoną komórkę, a Wyczyść usunie wszystkie wiersze. Możliwe wartości do wpisania w kolumnach to:

  • Description: A description for this query. The Description column will be the first column of the resulting spreadsheet. The description is mandatory to have a query performed. If you leave the description cell empty, the whole line will be skipped and left blank in the spreadsheet. This allows you to add "separator" lines.
  • Property: This is the real query that you want to perform on all the objects selected by the query. It can be two things: either the word count or an object property:
    • If you enter count (or Count or COUNT, it's case-insensitive) the selected objects will simply be counted.
    • If you enter an object property the value of this property for each of the selected objects will be retrieved and summed up. Objects that do not have the property will be skipped. Use dot notation to retrieve properties of properties: PropertyOfObject.PropertyOfProperty1.PropertyOfProperty2. If the property before the first dot starts with a lowercase letter it will be considered a reference to the object itself and be ignored. Entering for example object.Shape.Volume is the same as entering Shape.Volume.
  • Unit: An optional unit to express the results in. It's up to you to give a unit that matches the query you are doing, for example, if you are retrieving volumes, you should use a volume unit, such as m^3. If you use a wrong unit, for ex. cm, you'll get wrong results.
  • Objects: You can leave this empty, then all the objects of the document will be considered by this query, or give a semicolon (;)-separated list of object names. If any of the objects in this list is a group, its children will be selected as well. So the easiest way to use this feature is to group your objects meaningfully in the document, and just give a group name here. You can also use the Add selection button to add objects currently selected in the document. You must use internal names here. To select objects by their label, leave this column empty and use the Filter column instead.
  • Filter: Here you can add a semicolon;-separated list of filters. Each filter is written in the form: property:value. You can only use properties that hold a string value. Both the property and the value are case-insensitive. The value can be left out but not the :. To properly handle schedules created with previous versions of Arch Schedule the type property will be translated to the ifctype property. It is advisable to not use type in new schedules.
For example:
label:floor1;ifctype:window will retain only objects that have "floor1" in their DANELabel and "window" in their DANEIFC Type. A window with the DANELabel "Floor1-AA" and the DANEIFC Type "Window Standard Case" will be included.
label:door Will retain only objects that have "door" in their DANELabel.
!label:door Will retain only objects that do not have "door" in their DANELabel.
ifctype:structural Will retain only objects that have "structural" in their DANEIFC Type.
!ifctype:something Will retain only objects that do not have "structural" in their DANEIFC Type or that do not have the DANEIFC Type property.
!ifctype: Will retain only objects that do not have the DANEIFC Type property.

Przycisk Import umożliwia zaimportowanie listy utworzonej w innej aplikacji arkusza kalkulacyjnego, w postaci pliku csv.

Możemy więc zbudować listę zapytań w ten sposób:

Następnie naciśnij OK i nowy obiekt obmiaru zostanie dodany do dokumentu, który zawiera arkusz kalkulacyjny z wynikami:

Dwukrotne kliknięcie obiektu obmiaru powoduje powrót do panelu zadań i zmianę wartości. Dwukrotne kliknięcie samego arkusza kalkulacyjnego powoduje wyświetlenie wyników w 3 kolumnach: opis, wartość, jednostka (jeśli dotyczy):

Arkusz kalkulacyjny można następnie normalnie wyeksportować do formatu csv z poziomu arkusza kalkulacyjnego.

Własności dynamiczne

It is possible to add your own properties to objects. These are called Dynamic properties. If they have been added with the Prefix group name option selected, their names will indeed start with the group name, but this prefix is not displayed in the Property editor. Their names have this form: NameOfGroup_NameOfProperty. To reference them in a schedule this full name must be used.