Arch Check/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "==Użycie==")
(Created page with "Narzędzie to sprawdza bieżący dokument lub wybrane obiekty pod kątem braku brył typu {{KEY|16px Część}} lub obiektów środowiska {{Button|16px Architektura}}, co może powodować problemy, ponieważ większość operacji środowiska pracy Architektura wymaga obiektów bryłowych.")
Line 21: Line 21:
==Opis==
==Opis==


This tool checks the current document or the selected objects for non-solid {{KEY|[[Image: Workbench_Part.svg|16px]] [[Part_Workbench|Part]]}} or {{KEY|[[Image: Workbench_Arch.svg|16px]] [[Arch_Workbench|Arch]]}} objects, that might give problems, since most operations of the Arch Workbench require solid objects.
Narzędzie to sprawdza bieżący dokument lub wybrane obiekty pod kątem braku brył typu {{KEY|[[Image: Workbench_Part.svg|16px]] [[Part_Workbench/pl|Część]]}} lub obiektów środowiska {{Button|[[Image: Workbench_Arch.svg|16px]] [[Arch_Workbench/pl|Architektura]]}}, co może powodować problemy, ponieważ większość operacji środowiska pracy Architektura wymaga obiektów bryłowych.


<span id="Usage"></span>
<span id="Usage"></span>

Revision as of 18:17, 6 May 2024

Architektura: Sprawdź

Lokalizacja w menu
Architektura → Narzędzia → Sprawdź
Środowisko pracy
Architektura
Domyślny skrót
brak
Wprowadzono w wersji
-
Zobacz także
Zamknij otwory

Opis

Narzędzie to sprawdza bieżący dokument lub wybrane obiekty pod kątem braku brył typu Część lub obiektów środowiska Architektura, co może powodować problemy, ponieważ większość operacji środowiska pracy Architektura wymaga obiektów bryłowych.

Użycie

  1. Press the Check button, or ArchUtilities Check in the top menu.

Tworzenie skryptów

Zobacz również: API: Architektura i Podstawy tworzenia skryptów FreeCAD.

Narzędzie Kształt z siatki może być używane w makrodefinicjach i z konsoli Python za pomocą następującej funkcji:

list_bad = check(objectslist, includehidden=False)
  • Checks if the given objects in objectslist contain only solids.
  • If includehidden is True it will include all hidden objects, otherwise it will omit them from the search.
  • Returns list_bad, a list with the objects that are not derived from a Part::Feature, or components that are not closed, not valid, don't contain solids, or that contain faces that are not part of any solid. This is used to detect Arch or Draft wires and profiles that aren't solids.
    • Each element in list_bad is another list [object, message], where object is the detected non-solid, and message indicates the reason why it was included in this list.

Przykład:

import FreeCAD, Draft, Arch

p1 = FreeCAD.Vector(0, 0, 0)
p2 = FreeCAD.Vector(2000, 0, 0)
baseline = Draft.makeLine(p1, p2)
Wall1 = Arch.makeWall(baseline, length=None, width=150, height=2000)
FreeCAD.ActiveDocument.recompute()

Wall2 = Arch.makeWall(None, length=2000, width=200, height=1000)
FreeCAD.ActiveDocument.recompute()

Circle = Draft.makeCircle(450)
Wire = Draft.makeWire([FreeCAD.Vector(1000, 0, 0), FreeCAD.Vector(1500, 1000, 0), FreeCAD.Vector(2500, -1000, 0)])

list_bad = Arch.check([Wall1, Wall2, Circle, Wire], includehidden=True)
print(list_bad)