Arch API/it: Difference between revisions

From FreeCAD Documentation
(Created page with "{{Arch Tools navi/it}}")
(Created page with "Category:API/it")
Line 17: Line 17:
{{Arch Tools navi/it}}
{{Arch Tools navi/it}}


[[Category:API]]
[[Category:API/it]]


[[Category:Poweruser Documentation]]
[[Category:Poweruser Documentation]]

Revision as of 21:50, 15 March 2019

(Novembre 2018) Le API di Arch sono elencate in autogenerated API documentation.

Le funzioni API fanno parte dell'ambiente Arch e possono essere usate nelle macro e dalla console Python dopo che il modulo Arch/it è stato importato. L'addon Reinforcement ha le sue Reinforcement API.

Esempio:

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)