Architektura: Usuń kształt z Architektury

From FreeCAD Documentation
Revision as of 17:34, 6 May 2024 by Kaktus (talk | contribs) (Created page with "==Tworzenie skryptów==")

Architektura: Usuń kształt z Architektury

Lokalizacja w menu
Architektura → Narzędzia → Usuń kształt z Architektury
Środowisko pracy
Architektura
Domyślny skrót
brak
Wprowadzono w wersji
-
Zobacz także
Podziel siatkę, Kształt z siatki

Opis

Narzędzie to próbuje usunąć wewnętrzny sześcienny kształt ściany lub konstrukcji i dostosowanie jego właściwości, czyniąc go całkowicie parametrycznym. Narzędzie to będzie działać tylko wtedy, gdy kształt bazowy jest sześcienny (dokładnie 6 ścian, wszystkie narożniki mają tylko kąty proste).

Użycie

  1. Wybierz obiekt ściany lub konstrukcji.
  2. Naciśnij przycisk lub użyj Architektura

→ Narzędzia → Usuń kształt z Architektury z menu głównego.

Tworzenie skryptów

See also: Arch API and FreeCAD Scripting Basics.

This tool can be used in macros and from the Python console by using the following function:

removeShape(objs, mark=True)
  • Takes a list of Arch objects (objs) built on a cubic shape, and removes the inner shape, keeping the length, width and height as properties of the Arch object.
  • If mark is True, objects that cannot be processed by this function will become red.
import FreeCAD, Draft, Arch

Box = FreeCAD.ActiveDocument.addObject("Part::Box", "Box")
Box.Length = 1000
Box.Width = 2000
Box.Height = 1000
FreeCAD.ActiveDocument.recompute()

Structure = Arch.makeStructure(Box)
FreeCAD.ActiveDocument.recompute()

Arch.removeShape(Structure)
FreeCAD.ActiveDocument.recompute()