Add PointOnObject constraints to 2-pane window
This commit is contained in:
parent
af89ebc803
commit
c5f2e9e56b
|
@ -233,6 +233,8 @@ def makeWindowPreset(windowtype,width,height,h1,h2,h3,w1,w2,o1,o2,placement=None
|
||||||
s.addConstraint(Sketcher.Constraint('DistanceX',6,1,18,1,-tol))
|
s.addConstraint(Sketcher.Constraint('DistanceX',6,1,18,1,-tol))
|
||||||
s.addConstraint(Sketcher.Constraint('DistanceY',6,1,18,1,-tol))
|
s.addConstraint(Sketcher.Constraint('DistanceY',6,1,18,1,-tol))
|
||||||
s.addConstraint(Sketcher.Constraint('DistanceX',9,1,19,2,tol))
|
s.addConstraint(Sketcher.Constraint('DistanceX',9,1,19,2,tol))
|
||||||
|
s.addConstraint(Sketcher.Constraint('PointOnObject',13,2,22))
|
||||||
|
s.addConstraint(Sketcher.Constraint('PointOnObject',20,1,12))
|
||||||
wp.extend(["LeftFrame","Frame","Wire2,Wire3",str(w2),str(o1+o2)])
|
wp.extend(["LeftFrame","Frame","Wire2,Wire3",str(w2),str(o1+o2)])
|
||||||
wp.extend(["LeftGlass","Glass panel","Wire3",str(w2/gla),str(o1+o2+w2/2)])
|
wp.extend(["LeftGlass","Glass panel","Wire3",str(w2/gla),str(o1+o2+w2/2)])
|
||||||
wp.extend(["RightFrame","Frame","Wire4,Wire5",str(w2),str(o1+o2)])
|
wp.extend(["RightFrame","Frame","Wire4,Wire5",str(w2),str(o1+o2)])
|
||||||
|
@ -272,6 +274,8 @@ def makeWindowPreset(windowtype,width,height,h1,h2,h3,w1,w2,o1,o2,placement=None
|
||||||
s.addConstraint(Sketcher.Constraint('DistanceX',6,1,18,1,-tol))
|
s.addConstraint(Sketcher.Constraint('DistanceX',6,1,18,1,-tol))
|
||||||
s.addConstraint(Sketcher.Constraint('DistanceY',6,1,18,1,-tol))
|
s.addConstraint(Sketcher.Constraint('DistanceY',6,1,18,1,-tol))
|
||||||
s.addConstraint(Sketcher.Constraint('DistanceY',10,1,16,1,tol))
|
s.addConstraint(Sketcher.Constraint('DistanceY',10,1,16,1,tol))
|
||||||
|
s.addConstraint(Sketcher.Constraint('PointOnObject',9,2,17))
|
||||||
|
s.addConstraint(Sketcher.Constraint('PointOnObject',16,1,11))
|
||||||
wp.extend(["LowerFrame","Frame","Wire2,Wire3",str(w2),str(o1+o2+w2)])
|
wp.extend(["LowerFrame","Frame","Wire2,Wire3",str(w2),str(o1+o2+w2)])
|
||||||
wp.extend(["LowerGlass","Glass panel","Wire3",str(w2/gla),str(o1+o2+w2+w2/2)])
|
wp.extend(["LowerGlass","Glass panel","Wire3",str(w2/gla),str(o1+o2+w2+w2/2)])
|
||||||
wp.extend(["UpperFrame","Frame","Wire4,Wire5",str(w2),str(o1+o2)])
|
wp.extend(["UpperFrame","Frame","Wire4,Wire5",str(w2),str(o1+o2)])
|
||||||
|
@ -311,6 +315,8 @@ def makeWindowPreset(windowtype,width,height,h1,h2,h3,w1,w2,o1,o2,placement=None
|
||||||
s.addConstraint(Sketcher.Constraint('DistanceX',6,1,18,1,-tol))
|
s.addConstraint(Sketcher.Constraint('DistanceX',6,1,18,1,-tol))
|
||||||
s.addConstraint(Sketcher.Constraint('DistanceY',6,1,18,1,-tol))
|
s.addConstraint(Sketcher.Constraint('DistanceY',6,1,18,1,-tol))
|
||||||
s.addConstraint(Sketcher.Constraint('DistanceX',9,1,19,2,tol))
|
s.addConstraint(Sketcher.Constraint('DistanceX',9,1,19,2,tol))
|
||||||
|
s.addConstraint(Sketcher.Constraint('PointOnObject',13,2,22))
|
||||||
|
s.addConstraint(Sketcher.Constraint('PointOnObject',12,2,20))
|
||||||
wp.extend(["LeftFrame","Frame","Wire2,Wire3",str(w2),str(o1+o2)])
|
wp.extend(["LeftFrame","Frame","Wire2,Wire3",str(w2),str(o1+o2)])
|
||||||
wp.extend(["LeftGlass","Glass panel","Wire3",str(w2/gla),str(o1+o2+w2/2)])
|
wp.extend(["LeftGlass","Glass panel","Wire3",str(w2/gla),str(o1+o2+w2/2)])
|
||||||
wp.extend(["RightFrame","Frame","Wire4,Wire5",str(w2),str(o1+o2+w2)])
|
wp.extend(["RightFrame","Frame","Wire4,Wire5",str(w2),str(o1+o2+w2)])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user