Skip to content

Commit

Permalink
Arch: Made default door/windows openable
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Oct 15, 2020
1 parent fd0019c commit 2682700
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Mod/Arch/ArchWindowPresets.py
Expand Up @@ -170,7 +170,7 @@ def doorFrame(s,width,height,h1,w1,o1):
fw = str(w2)
if w2 == w1:
fw = "0.00+V"
wp.extend(["InnerFrame","Frame","Wire2,Wire3",fw,str(o2)+"+V"])
wp.extend(["InnerFrame","Frame","Wire2,Wire3,Edge8,Mode1",fw,str(o2)+"+V"])
wp.extend(["InnerGlass","Glass panel","Wire3",str(w2/gla),str(o2+w2/2)+"+V"])

elif windowtype == "Open 2-pane":
Expand Down Expand Up @@ -220,9 +220,9 @@ def doorFrame(s,width,height,h1,w1,o1):
fw = str(w2)
if w2 == w1:
fw = "0.00+V"
wp.extend(["LeftFrame","Frame","Wire2,Wire3",fw,str(o2)+"+V"])
wp.extend(["LeftFrame","Frame","Wire2,Wire3,Edge8,Mode1",fw,str(o2)+"+V"])
wp.extend(["LeftGlass","Glass panel","Wire3",str(w2/gla),str(o2+w2/2)+"+V"])
wp.extend(["RightFrame","Frame","Wire4,Wire5",fw,str(o2)+"+V"])
wp.extend(["RightFrame","Frame","Wire4,Wire5,Edge6,Mode2",fw,str(o2)+"+V"])
wp.extend(["RightGlass","Glass panel","Wire5",str(w2/gla),str(o2+w2/2)+"+V"])

elif windowtype == "Sash 2-pane":
Expand Down Expand Up @@ -433,7 +433,7 @@ def doorFrame(s,width,height,h1,w1,o1):
elif windowtype == "Simple door":

wp = doorFrame(s,width,height,h1,w1,o1)
wp.extend(["Door","Solid panel","Wire1",str(w2),str(o2)+"+V"])
wp.extend(["Door","Solid panel","Wire1,Edge8,Mode2",str(w2),str(o2)+"+V"])

elif windowtype == "Glass door":

Expand Down Expand Up @@ -463,7 +463,7 @@ def doorFrame(s,width,height,h1,w1,o1):
fw = str(w2)
if w2 == w1:
fw = "0.00+V"
wp.extend(["InnerFrame","Frame","Wire2,Wire3",fw,str(o2)+"+V"])
wp.extend(["InnerFrame","Frame","Wire2,Wire3,Edge8,Mode1",fw,str(o2)+"+V"])
wp.extend(["InnerGlass","Glass panel","Wire3",str(w2/gla),str(o2+w2/2)+"+V"])

return (s,wp)
Expand Down

0 comments on commit 2682700

Please sign in to comment.