ArchWindow Namespace Reference

The Window object and tools. More...

Functions

def makeWindow (baseobj=None, width=None, height=None, parts=None, name="Window")
 
def makeWindowPreset (windowtype, width, height, h1, h2, h3, w1, w2, o1, o2, placement=None)
 

Variables

list AllowedHosts = ["Wall","Structure","Roof"]
 
list Roles = ["Window","Door"]
 
list WindowOpeningModes = ["None","Arc 90","Arc 90 inv","Arc 45","Arc 45 inv","Arc 180","Arc 180 inv","Triangle","Triangle inv","Sliding","Sliding inv"]
 
list WindowPartTypes = ["Frame","Solid panel","Glass panel","Louvre"]
 
list WindowPresets
 

Detailed Description

The Window object and tools.

This module provides tools to build Window objects. Windows are Arch objects obtained by extruding a series of wires, and that can be inserted into other Arch objects, by defining a volume that gets subtracted from them.

Function Documentation

def ArchWindow.makeWindow (   baseobj = None,
  width = None,
  height = None,
  parts = None,
  name = "Window" 
)
makeWindow(baseobj,[width,height,parts,name]): creates a window based on the
given base 2D object (sketch or draft).

References Draft.clone(), and Draft.getType().

Referenced by makeWindowPreset().

def ArchWindow.makeWindowPreset (   windowtype,
  width,
  height,
  h1,
  h2,
  h3,
  w1,
  w2,
  o1,
  o2,
  placement = None 
)

Variable Documentation

list ArchWindow.AllowedHosts = ["Wall","Structure","Roof"]
list ArchWindow.Roles = ["Window","Door"]
list ArchWindow.WindowOpeningModes = ["None","Arc 90","Arc 90 inv","Arc 45","Arc 45 inv","Arc 180","Arc 180 inv","Triangle","Triangle inv","Sliding","Sliding inv"]
list ArchWindow.WindowPartTypes = ["Frame","Solid panel","Glass panel","Louvre"]
list ArchWindow.WindowPresets
Initial value:
1 = ["Fixed", "Open 1-pane", "Open 2-pane", "Sash 2-pane",
2  "Sliding 2-pane", "Simple door", "Glass door"]