Difference between revisions of "Arch Roof/de"

From FreeCAD Documentation
Jump to navigation Jump to search
(Created page with "==Beschreibung==")
(Updating to match new version of source page)
Line 1: Line 1:
{{GuiCommand/de|Name=Arch Roof|Name/de=Arch Roof|Workbenches=[[Arch Module/de|Arch]]|MenuLocation=Arch -> Roof|Shortcut=R F}}
+
{{GuiCommand|Name=Arch Roof|Workbenches=[[Arch Module|Arch]]|MenuLocation=Arch -> Roof|Shortcut=R F|SeeAlso=[[Arch Roof2|Arch Roof2]]}}
  
 
==Beschreibung==
 
==Beschreibung==
Line 20: Line 20:
  
 
The Roof tool can by used in [[macros]] and from the python console by using the following function:
 
The Roof tool can by used in [[macros]] and from the python console by using the following function:
<syntaxhighlight>
+
{{Code|code=
 
makeRoof (baseobj,[facenr],[angle],[name])
 
makeRoof (baseobj,[facenr],[angle],[name])
</syntaxhighlight>
+
}}
 
:Makes a roof based on a face from an existing object. You can provide the number of the face to build the roof on (default = 1), the angle in degrees (default=45) and a name (default = roof).
 
:Makes a roof based on a face from an existing object. You can provide the number of the face to build the roof on (default = 1), the angle in degrees (default=45) and a name (default = roof).
  
 
Example:
 
Example:
<syntaxhighlight>
+
{{Code|code=
 
import Arch, Draft
 
import Arch, Draft
 
rect = Draft.makeRectangle(2,4)
 
rect = Draft.makeRectangle(2,4)
 
Arch.makeRoof(rect,angle=30)
 
Arch.makeRoof(rect,angle=30)
</syntaxhighlight>
+
}}
 
<languages/>
 
<languages/>

Revision as of 18:06, 30 December 2014

Arch Roof.svg Arch Roof

Menu location
Arch -> Roof
Workbenches
Arch
Default shortcut
R F
Introduced in version
-
See also
Arch Roof2


Beschreibung

The Roof tool allows you to create a sloped roof from a selected face. Any face of any shape-based object can be used, and the created roof object is parametric, keeping its relationship with the base object. Please note that this tool is still in development, and might fail with very complex shapes.

Arch Roof example.jpg

How to use

  1. Select an existing face
  2. Press the Arch Roof.png Arch Roof button, or press R then F keys

Properties

  • DataAngle: The slope angle of the roof
  • DataFace: The face index of the base object to be used

Scripting

The Roof tool can by used in macros and from the python console by using the following function:

makeRoof (baseobj,[facenr],[angle],[name])
Makes a roof based on a face from an existing object. You can provide the number of the face to build the roof on (default = 1), the angle in degrees (default=45) and a name (default = roof).

Example:

import Arch, Draft
rect = Draft.makeRectangle(2,4)
Arch.makeRoof(rect,angle=30)
Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎português do Brasil • ‎română • ‎svenska • ‎čeština • ‎русский • ‎українська