Arch API/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "{{VeryImportantMessage|''(Listopad 2018)'' Arch API jest wymieniony w [https://www.freecadweb.org/api automatycznie generowanej dokumentacja API].}}")
No edit summary
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{VeryImportantMessage|''(Listopad 2018)'' Arch API jest wymieniony w [https://www.freecadweb.org/api automatycznie generowanej dokumentacja API].}}
{{VeryImportantMessage|''(Listopad 2018)'' Arch API jest wymieniony w [https://www.freecadweb.org/api automatycznie generowanej dokumentacji API].}}


The functions of the API are part of the [[Arch Workbench]] and can be used in [[macros]] and from the [[Python]] console once the {{incode|Arch}} module has been imported. The [[Reinforcement Addon]] has its own [[Reinforcement API]].
Funkcje API częścią Środowiska pracy [[Arch_Module/pl|Architektura]] i mogą być używane w [[macros/pl|makrodefinicjach]] i z konsoli [[Python/pl|Python]] po zaimportowaniu modułu {{incode|Arch}}. Dodatek [[Reinforcement_Addon/pl|Zbrojenie]] ma swoje własne [[Reinforcement_API/pl|skrypty]].


Przykład:
Example:
{{Code|code=
{{Code|code=
import FreeCAD, Draft, Arch
import FreeCAD, Draft, Arch

Revision as of 15:52, 8 June 2021

(Listopad 2018) Arch API jest wymieniony w automatycznie generowanej dokumentacji API.

Funkcje API są częścią Środowiska pracy Architektura i mogą być używane w makrodefinicjach i z konsoli Python po zaimportowaniu modułu Arch. Dodatek Zbrojenie ma swoje własne skrypty.

Przykład:

import FreeCAD, Draft, Arch

p1 = FreeCAD.Vector(0, 0, 0)
p2 = FreeCAD.Vector(2000, 0, 0)
baseline = Draft.makeLine(p1, p2)

Arch.makeWall(baseline, length=None, width=200, height=2000)