Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ''' Python Script for freecad to model chess peice MD Harrington https://www.facebook.com/mark.harrington.142892 '''
- Python 3.6.12 (default, Dec 02 2020, 09:44:23) [GCC] on linux Type
- 'help', 'copyright', 'credits' or 'license' for more information.
- exec(open('/usr/share/FreeCAD/Mod/Start/StartPage/LoadNew.py').read())
- App.setActiveDocument("Unnamed")
- App.ActiveDocument=App.getDocument("Unnamed")
- Gui.ActiveDocument=Gui.getDocument("Unnamed")
- Gui.activateWorkbench("PartDesignWorkbench")
- App.activeDocument().addObject('PartDesign::Body','Body') import
- PartDesignGui Gui.activeView().setActiveObject('pdbody',
- App.activeDocument().Body) Gui.Selection.clearSelection()
- Gui.Selection.addSelection(App.ActiveDocument.Body)
- App.ActiveDocument.recompute()
- App.activeDocument().Body.newObject('Sketcher::SketchObject','Sketch')
- App.activeDocument().Sketch.Support =
- (App.activeDocument().XY_Plane, [''])
- App.activeDocument().Sketch.MapMode = 'FlatFace'
- App.ActiveDocument.recompute()
- Gui.activeDocument().setEdit('Sketch')
- Gui.activateWorkbench('SketcherWorkbench') import PartDesignGui
- import Show.TempoVis ActiveSketch =
- App.ActiveDocument.getObject('Sketch') tv =
- Show.TempoVis(App.ActiveDocument) if
- ActiveSketch.ViewObject.HideDependent: objs =
- tv.get_all_dependent(ActiveSketch) objs = filter(lambda x: not
- x.TypeId.startswith("TechDraw::"), objs) objs = filter(lambda x:
- not x.TypeId.startswith("Drawing::"), objs) tv.hide(objs) if
- ActiveSketch.ViewObject.ShowSupport: tv.show([ref[0] for ref in
- ActiveSketch.Support if not ref[0].isDerivedFrom("PartDesign::Plane")])
- if ActiveSketch.ViewObject.ShowLinks: tv.show([ref[0] for ref
- in ActiveSketch.ExternalGeometry]) tv.hide(ActiveSketch)
- ActiveSketch.ViewObject.TempoVis = tv del(tv) ActiveSketch
- = App.ActiveDocument.getObject('Sketch') if
- ActiveSketch.ViewObject.RestoreCamera:
- ActiveSketch.ViewObject.TempoVis.saveCamera()
- App.ActiveDocument.Sketch.addGeometry(Part.LineSegment(App.Vector(1.750796,2.095233,0),App.Vector(16.548586,2.016101,0)),False)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addGeometry(Part.LineSegment(App.Vector(16.548586,2.016101,0),App.Vector(16.548586,6.843186,0)),False)
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',0,2,1,1))
- App.ActiveDocument.recompute() App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addGeometry(Part.LineSegment(App.Vector(16.548586,6.843186,0),App.Vector(13.383286,9.217163,0)),False)
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',1,2,2,1))
- App.ActiveDocument.recompute() App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addGeometry(Part.LineSegment(App.Vector(13.383286,9.217163,0),App.Vector(5.707422,9.138032,0)),False)
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',2,2,3,1))
- App.ActiveDocument.recompute() App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addGeometry(Part.LineSegment(App.Vector(5.707422,9.138032,0),App.Vector(8.242678,40.268314,0)),False)
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',3,2,4,1))
- App.ActiveDocument.recompute() App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addGeometry(Part.LineSegment(App.Vector(8.242678,40.268314,0),App.Vector(12.436702,40.268314,0)),False)
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',4,2,5,1))
- App.ActiveDocument.recompute() App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addGeometry(Part.LineSegment(App.Vector(12.436702,40.268314,0),App.Vector(12.516499,48.836342,0)),False)
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',5,2,6,1))
- App.ActiveDocument.recompute() App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addGeometry(Part.LineSegment(App.Vector(12.516499,48.836342,0),App.Vector(1.279675,48.836342,0)),False)
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',6,2,7,1))
- App.ActiveDocument.recompute() App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addGeometry(Part.LineSegment(App.Vector(1.279675,48.836342,0),App.Vector(1.673546,2.036575,0)),False)
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',7,2,8,1))
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',8,2,0,1))
- App.ActiveDocument.recompute() App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(3,0,App.Vector(0.079133,0.000000,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(0,0,App.Vector(0.079131,-0.553928,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(8,0,App.Vector(-1.107852,-0.079132,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(7,0,App.Vector(0.000000,0.236103,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(0,0,App.Vector(-0.472212,-0.118052,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('PointOnObject',0,1,-2))
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceY',8,2,8,1,47.707850))
- App.ActiveDocument.Sketch.setDatum(10,App.Units.Quantity('64.000000
- mm')) App.ActiveDocument.recompute()
- App.ActiveDocument.recompute() Gui.SendMsgToActiveView("ViewFit")
- App.ActiveDocument.Sketch.movePoint(6,2,App.Vector(13.754119,59.233494,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(0,2,App.Vector(16.970783,-4.540214,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Horizontal',0))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Horizontal',7))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(0,0,App.Vector(0.000000,6.153603,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',0,1,-1,1))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(0,0,App.Vector(0.139852,-1.538401,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Vertical',8))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(7,0,App.Vector(2.377520,-0.839123,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(5,0,App.Vector(0.419564,16.223137,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(6,0,App.Vector(4.335495,-0.139851,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(6,2,App.Vector(18.369322,64.000000,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(3,0,App.Vector(0.139856,0.559419,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Horizontal',3))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Horizontal',4))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.setVirtualSpace(9, True)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.delConstraint(15)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(1,2,App.Vector(17.110634,6.788010,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceX',0,1,0,2,17.110635))
- App.ActiveDocument.Sketch.setDatum(16,App.Units.Quantity('18.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.delConstraint(9)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(1,0,App.Vector(2.237684,0.139855,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceX',0,1,0,2,19.348319))
- App.ActiveDocument.Sketch.setDatum(15,App.Units.Quantity('18.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(1,2,App.Vector(18.089615,7.766992,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceY',1,1,1,2,7.766992))
- App.ActiveDocument.Sketch.setDatum(16,App.Units.Quantity('6.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceY',1,2,2,2,3.776582))
- App.ActiveDocument.Sketch.setDatum(17,App.Units.Quantity('3.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(4,2,App.Vector(8.859208,12.941614,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(3,2,App.Vector(13.194703,13.081468,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(4,2,App.Vector(7.460668,12.801758,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(4,2,App.Vector(5.642550,12.941614,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(3,2,App.Vector(13.893976,12.941614,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(3,2,App.Vector(13.334559,12.102485,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(3,2,App.Vector(14.033833,11.403213,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.delConstraintOnPoint(0,1)
- App.ActiveDocument.Sketch.delGeometry(3)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',3,1,2,2))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(3,0,App.Vector(0.279708,0.000000,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceX',2,2,1,2,3.776074))
- App.ActiveDocument.Sketch.setDatum(15,App.Units.Quantity('3.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(3,2,App.Vector(6.481688,8.885829,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(4,2,App.Vector(10.397604,56.855965,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(5,2,App.Vector(16.970783,65.526947,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.delConstraintOnPoint(4,2)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(4,2,App.Vector(7.320812,53.219746,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(5,1,App.Vector(16.830927,56.436398,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(4,2,App.Vector(6.901252,56.296543,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addGeometry(Part.LineSegment(App.Vector(6.901252,56.296543,0),App.Vector(16.830927,56.436398,0)),False)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(8,0,App.Vector(0.000000,2.237675,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',8,1,4,2))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',8,2,5,1))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(4,2,App.Vector(8.020084,58.394363,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(5,1,App.Vector(16.691071,54.758141,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(4,2,App.Vector(10.117901,54.618290,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(5,1,App.Vector(16.830927,52.240761,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(4,2,App.Vector(9.978045,52.240761,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceX',6,2,6,1,16.970783))
- App.ActiveDocument.Sketch.setDatum(17,App.Units.Quantity('16.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(0,0,App.Vector(2.517372,1.818110,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',7,2,0,1))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(7,0,App.Vector(0.000000,-0.978981,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',0,1,-1,1))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(5,1,App.Vector(16.131655,52.380615,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceY',5,1,5,2,11.619385))
- App.ActiveDocument.Sketch.setDatum(20,App.Units.Quantity('12.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Horizontal',8))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceX',0,1,4,2,9.978045))
- App.ActiveDocument.Sketch.setDatum(22,App.Units.Quantity('10.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceX',0,1,3,2,6.481688))
- App.ActiveDocument.Sketch.setDatum(23,App.Units.Quantity('6.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Vertical',1))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(4,0,App.Vector(3.636223,0.000000,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(8,0,App.Vector(0.000000,-1.398548,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(4,2,App.Vector(7.740376,52.380615,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(6,0,App.Vector(0.279708,0.279709,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(2,0,App.Vector(-1.957975,-0.559418,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(3,0,App.Vector(0.000000,2.377527,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(0,0,App.Vector(0.000000,-1.118837,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(7,0,App.Vector(-2.657228,-0.419564,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceX',4,2,0,1,-10.000000))
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceY',4,2,0,1,-52.000000))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceY',0,1,3,2,9.000000))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- Gui.getDocument('Unnamed').resetEdit()
- ActiveSketch = App.ActiveDocument.getObject('Sketch')
- tv = ActiveSketch.ViewObject.TempoVis
- if tv:
- tv.restore()
- ActiveSketch.ViewObject.TempoVis = None
- del(tv)
- Gui.activateWorkbench('PartDesignWorkbench')
- App.getDocument('Unnamed').recompute()
- App.activeDocument().Body.newObject("PartDesign::Revolution","Revolution")
- App.activeDocument().Revolution.Profile = App.activeDocument().Sketch
- App.activeDocument().Revolution.ReferenceAxis = (App.activeDocument().Sketch,['V_Axis'])
- App.activeDocument().Revolution.Angle = 360.0
- App.activeDocument().Revolution.Reversed = 1
- Gui.activeDocument().hide("Sketch")
- App.ActiveDocument.recompute()
- Gui.ActiveDocument.Revolution.ShapeColor=Gui.ActiveDocument.Body.ShapeColor
- Gui.ActiveDocument.Revolution.LineColor=Gui.ActiveDocument.Body.LineColor
- Gui.ActiveDocument.Revolution.PointColor=Gui.ActiveDocument.Body.PointColor
- Gui.ActiveDocument.Revolution.Transparency=Gui.ActiveDocument.Body.Transparency
- Gui.ActiveDocument.Revolution.DisplayMode=Gui.ActiveDocument.Body.DisplayMode
- Gui.activeDocument().setEdit('Revolution', 0)
- Gui.Selection.clearSelection()
- Gui.activeDocument().hide("Sketch")
- App.ActiveDocument.Revolution.Angle = 360.000000
- App.ActiveDocument.Revolution.ReferenceAxis = (App.ActiveDocument.Sketch, ["V_Axis"])
- App.ActiveDocument.Revolution.Midplane = 0
- App.ActiveDocument.Revolution.Reversed = 1
- App.ActiveDocument.recompute()
- Gui.activeDocument().resetEdit()
- App.activeDocument().Body.Tip = None
- App.ActiveDocument.recompute()
- Gui.activateWorkbench('SketcherWorkbench')
- import PartDesignGui
- ActiveSketch = App.ActiveDocument.getObject('Sketch')
- tv = Show.TempoVis(App.ActiveDocument)
- if ActiveSketch.ViewObject.HideDependent:
- objs = tv.get_all_dependent(ActiveSketch)
- objs = filter(lambda x: not x.TypeId.startswith("TechDraw::"), objs)
- objs = filter(lambda x: not x.TypeId.startswith("Drawing::"), objs)
- tv.hide(objs)
- if ActiveSketch.ViewObject.ShowSupport:
- tv.show([ref[0] for ref in ActiveSketch.Support if not ref[0].isDerivedFrom("PartDesign::Plane")])
- if ActiveSketch.ViewObject.ShowLinks:
- tv.show([ref[0] for ref in ActiveSketch.ExternalGeometry])
- tv.hide(ActiveSketch)
- ActiveSketch.ViewObject.TempoVis = tv
- del(tv)
- ActiveSketch = App.ActiveDocument.getObject('Sketch')
- if ActiveSketch.ViewObject.RestoreCamera:
- ActiveSketch.ViewObject.TempoVis.saveCamera()
- App.ActiveDocument.Sketch.delConstraint(20)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(5,2,App.Vector(18.623659,63.722214,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.delConstraint(17)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(5,2,App.Vector(21.955362,63.116451,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(8,0,App.Vector(-0.757206,-7.117737,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceX',6,2,6,1,21.955362))
- App.ActiveDocument.Sketch.setDatum(23,App.Units.Quantity('18.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.setDatum(20,App.Units.Quantity('7.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.setDatum(21,App.Units.Quantity('3.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(8,0,App.Vector(-0.151439,1.060085,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceY',5,1,5,2,18.057652))
- App.ActiveDocument.Sketch.setDatum(24,App.Units.Quantity('18.060000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(8,0,App.Vector(-1.060094,0.454315,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceX',8,1,8,2,7.162916))
- App.ActiveDocument.Sketch.setDatum(25,App.Units.Quantity('7.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- Gui.getDocument('Unnamed').resetEdit()
- ActiveSketch = App.ActiveDocument.getObject('Sketch')
- tv = ActiveSketch.ViewObject.TempoVis
- if tv:
- tv.restore()
- ActiveSketch.ViewObject.TempoVis = None
- del(tv)
- Gui.activateWorkbench('PartDesignWorkbench')
- App.getDocument('Unnamed').recompute()
- Gui.activateWorkbench('SketcherWorkbench')
- import PartDesignGui
- ActiveSketch = App.ActiveDocument.getObject('Sketch')
- tv = Show.TempoVis(App.ActiveDocument)
- if ActiveSketch.ViewObject.HideDependent:
- objs = tv.get_all_dependent(ActiveSketch)
- objs = filter(lambda x: not x.TypeId.startswith("TechDraw::"), objs)
- objs = filter(lambda x: not x.TypeId.startswith("Drawing::"), objs)
- tv.hide(objs)
- if ActiveSketch.ViewObject.ShowSupport:
- tv.show([ref[0] for ref in ActiveSketch.Support if not ref[0].isDerivedFrom("PartDesign::Plane")])
- if ActiveSketch.ViewObject.ShowLinks:
- tv.show([ref[0] for ref in ActiveSketch.ExternalGeometry])
- tv.hide(ActiveSketch)
- ActiveSketch.ViewObject.TempoVis = tv
- del(tv)
- ActiveSketch = App.ActiveDocument.getObject('Sketch')
- if ActiveSketch.ViewObject.RestoreCamera:
- ActiveSketch.ViewObject.TempoVis.saveCamera()
- App.ActiveDocument.Sketch.delConstraint(25)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.delConstraintOnPoint(5,1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.delConstraint(23)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(5,1,App.Vector(9.839961,48.729527,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addGeometry(Part.LineSegment(App.Vector(9.839961,48.729527,0),App.Vector(16.503380,48.729527,0)),False)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.delGeometry(8)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addGeometry(Part.LineSegment(App.Vector(7.000000,45.939999,0),App.Vector(17.109142,46.003578,0)),False)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addGeometry(Part.LineSegment(App.Vector(17.109142,46.003578,0),App.Vector(16.503380,48.729527,0)),False)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(8,2,App.Vector(16.806261,51.152588,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',8,2,10,2))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(8,2,App.Vector(16.806261,48.880966,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Vertical',10))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(5,1,App.Vector(6.811135,48.729527,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',8,1,5,1))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(5,1,App.Vector(7.114017,48.880966,0),0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(10,0,App.Vector(3.937479,0.151440,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',10,1,9,2))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(9,0,App.Vector(2.271618,-0.151447,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',9,1,4,2))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(9,0,App.Vector(0.000000,0.151440,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(10,0,App.Vector(-6.360537,-0.151443,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Parallel',9,8))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceY',10,1,10,2,2.940246))
- App.ActiveDocument.Sketch.setDatum(27,App.Units.Quantity('2.500000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Horizontal',9))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceX',9,1,9,2,9.957494))
- App.ActiveDocument.Sketch.setDatum(29,App.Units.Quantity('9.960000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceY',5,1,5,2,15.549687))
- App.ActiveDocument.Sketch.setDatum(30,App.Units.Quantity('15.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceY',4,1,4,2,37.500000))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(5,0,App.Vector(0.151443,1.211529,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(6,0,App.Vector(0.151440,1.817299,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(3,0,App.Vector(0.151440,-0.454325,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(1,0,App.Vector(2.423059,-0.151441,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(2,0,App.Vector(-0.605764,-0.757206,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(0,0,App.Vector(0.151443,1.665855,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.movePoint(5,0,App.Vector(-0.302882,0.908649,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceX',6,2,5,1,6.962583))
- App.ActiveDocument.Sketch.setDatum(31,App.Units.Quantity('7.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch.setDatum(20,App.Units.Quantity('15.000000 mm'))
- App.ActiveDocument.recompute()
- Gui.getDocument('Unnamed').resetEdit()
- ActiveSketch = App.ActiveDocument.getObject('Sketch')
- tv = ActiveSketch.ViewObject.TempoVis
- if tv:
- tv.restore()
- ActiveSketch.ViewObject.TempoVis = None
- del(tv)
- Gui.activateWorkbench('PartDesignWorkbench')
- App.getDocument('Unnamed').recompute()
- Gui.SendMsgToActiveView("SaveAs")
- App.getDocument("Unnamed").saveAs(u"/home/mark/Documents/Freecadprojects/ChessPieces/king.FCStd")
- App.activeDocument().Body.newObject('Sketcher::SketchObject','Sketch001')
- App.activeDocument().Sketch001.Support = (App.ActiveDocument.Revolution,["Face2"])
- App.activeDocument().Sketch001.MapMode = 'FlatFace'
- App.ActiveDocument.recompute()
- Gui.activeDocument().setEdit('Sketch001')
- Gui.activateWorkbench('SketcherWorkbench')
- import PartDesignGui
- ActiveSketch = App.ActiveDocument.getObject('Sketch001')
- tv = Show.TempoVis(App.ActiveDocument)
- if ActiveSketch.ViewObject.HideDependent:
- objs = tv.get_all_dependent(ActiveSketch)
- objs = filter(lambda x: not x.TypeId.startswith("TechDraw::"), objs)
- objs = filter(lambda x: not x.TypeId.startswith("Drawing::"), objs)
- tv.hide(objs)
- if ActiveSketch.ViewObject.ShowSupport:
- tv.show([ref[0] for ref in ActiveSketch.Support if not ref[0].isDerivedFrom("PartDesign::Plane")])
- if ActiveSketch.ViewObject.ShowLinks:
- tv.show([ref[0] for ref in ActiveSketch.ExternalGeometry])
- tv.hide(ActiveSketch)
- ActiveSketch.ViewObject.TempoVis = tv
- del(tv)
- ActiveSketch = App.ActiveDocument.getObject('Sketch001')
- if ActiveSketch.ViewObject.RestoreCamera:
- ActiveSketch.ViewObject.TempoVis.saveCamera()
- Gui.SendMsgToActiveView("ViewFit")
- geoList = []
- geoList.append(Part.LineSegment(App.Vector(-4.469319,8.712027,0),App.Vector(4.912869,8.712027,0)))
- geoList.append(Part.LineSegment(App.Vector(4.912869,8.712027,0),App.Vector(4.912869,-9.808660,0)))
- geoList.append(Part.LineSegment(App.Vector(4.912869,-9.808660,0),App.Vector(-4.469319,-9.808660,0)))
- geoList.append(Part.LineSegment(App.Vector(-4.469319,-9.808660,0),App.Vector(-4.469319,8.712027,0)))
- App.ActiveDocument.Sketch001.addGeometry(geoList,False)
- conList = []
- conList.append(Sketcher.Constraint('Coincident',0,2,1,1))
- conList.append(Sketcher.Constraint('Coincident',1,2,2,1))
- conList.append(Sketcher.Constraint('Coincident',2,2,3,1))
- conList.append(Sketcher.Constraint('Coincident',3,2,0,1))
- conList.append(Sketcher.Constraint('Horizontal',0))
- conList.append(Sketcher.Constraint('Horizontal',2))
- conList.append(Sketcher.Constraint('Vertical',1))
- conList.append(Sketcher.Constraint('Vertical',3))
- App.ActiveDocument.Sketch001.addConstraint(conList)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch001.addConstraint(Sketcher.Constraint('Symmetric',0,1,2,2,-1))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch001.addConstraint(Sketcher.Constraint('Symmetric',0,1,0,2,-2))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch001.movePoint(2,0,App.Vector(0.974766,-1.218466,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch001.movePoint(1,0,App.Vector(-0.121845,-0.243692,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch001.movePoint(0,0,App.Vector(-0.121845,1.462161,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch001.addConstraint(Sketcher.Constraint('DistanceX',0,1,0,2,9.350269))
- App.ActiveDocument.Sketch001.setDatum(10,App.Units.Quantity('9.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch001.delConstraint(4)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch001.delConstraint(5)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch001.delConstraint(5)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch001.delConstraint(4)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch001.addConstraint(Sketcher.Constraint('DistanceX',0,1,0,2,9.350269))
- App.ActiveDocument.Sketch001.setDatum(6,App.Units.Quantity('9.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch001.addConstraint(Sketcher.Constraint('DistanceY',1,2,1,1,22.787522))
- App.ActiveDocument.Sketch001.setDatum(7,App.Units.Quantity('22.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch001.addConstraint(Sketcher.Constraint('Vertical',1))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch001.addConstraint(Sketcher.Constraint('Horizontal',2))
- App.ActiveDocument.recompute()
- Gui.getDocument('Unnamed').resetEdit()
- ActiveSketch = App.ActiveDocument.getObject('Sketch001')
- tv = ActiveSketch.ViewObject.TempoVis
- if tv:
- tv.restore()
- ActiveSketch.ViewObject.TempoVis = None
- del(tv)
- Gui.activateWorkbench('PartDesignWorkbench')
- App.getDocument('Unnamed').recompute()
- App.activeDocument().Body.newObject("PartDesign::Pad","Pad")
- App.activeDocument().Pad.Profile = App.activeDocument().Sketch001
- App.activeDocument().Pad.Length = 10.0
- App.ActiveDocument.recompute()
- Gui.activeDocument().hide("Sketch001")
- App.ActiveDocument.recompute()
- Gui.ActiveDocument.Pad.ShapeColor=Gui.ActiveDocument.Body.ShapeColor
- Gui.ActiveDocument.Pad.LineColor=Gui.ActiveDocument.Body.LineColor
- Gui.ActiveDocument.Pad.PointColor=Gui.ActiveDocument.Body.PointColor
- Gui.ActiveDocument.Pad.Transparency=Gui.ActiveDocument.Body.Transparency
- Gui.ActiveDocument.Pad.DisplayMode=Gui.ActiveDocument.Body.DisplayMode
- Gui.activeDocument().setEdit('Pad', 0)
- Gui.Selection.clearSelection()
- Gui.activeDocument().hide("Sketch001")
- App.ActiveDocument.Pad.Length = 15.000000
- App.ActiveDocument.Pad.Length2 = 100.000000
- App.ActiveDocument.Pad.Type = 0
- App.ActiveDocument.Pad.UpToFace = None
- App.ActiveDocument.Pad.Reversed = 0
- App.ActiveDocument.Pad.Midplane = 0
- App.ActiveDocument.Pad.Offset = 0.000000
- Gui.activeDocument().hide("Revolution")
- App.ActiveDocument.recompute()
- Gui.activeDocument().resetEdit()
- App.activeDocument().Body.Tip = None
- App.ActiveDocument.recompute()
- Gui.activateWorkbench('SketcherWorkbench')
- import PartDesignGui
- ActiveSketch = App.ActiveDocument.getObject('Sketch001')
- tv = Show.TempoVis(App.ActiveDocument)
- if ActiveSketch.ViewObject.HideDependent:
- objs = tv.get_all_dependent(ActiveSketch)
- objs = filter(lambda x: not x.TypeId.startswith("TechDraw::"), objs)
- objs = filter(lambda x: not x.TypeId.startswith("Drawing::"), objs)
- tv.hide(objs)
- if ActiveSketch.ViewObject.ShowSupport:
- tv.show([ref[0] for ref in ActiveSketch.Support if not ref[0].isDerivedFrom("PartDesign::Plane")])
- if ActiveSketch.ViewObject.ShowLinks:
- tv.show([ref[0] for ref in ActiveSketch.ExternalGeometry])
- tv.hide(ActiveSketch)
- ActiveSketch.ViewObject.TempoVis = tv
- del(tv)
- ActiveSketch = App.ActiveDocument.getObject('Sketch001')
- if ActiveSketch.ViewObject.RestoreCamera:
- ActiveSketch.ViewObject.TempoVis.saveCamera()
- App.ActiveDocument.Sketch001.setDatum(6,App.Units.Quantity('6.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch001.setDatum(7,App.Units.Quantity('18.000000 mm'))
- App.ActiveDocument.recompute()
- Gui.getDocument('Unnamed').resetEdit()
- ActiveSketch = App.ActiveDocument.getObject('Sketch001')
- tv = ActiveSketch.ViewObject.TempoVis
- if tv:
- tv.restore()
- ActiveSketch.ViewObject.TempoVis = None
- del(tv)
- Gui.activateWorkbench('PartDesignWorkbench')
- App.getDocument('Unnamed').recompute()
- App.activeDocument().Body.newObject('Sketcher::SketchObject','Sketch002')
- App.activeDocument().Sketch002.Support = (App.ActiveDocument.Pad,["Face6"])
- App.activeDocument().Sketch002.MapMode = 'FlatFace'
- App.ActiveDocument.recompute()
- Gui.activeDocument().setEdit('Sketch002')
- Gui.activateWorkbench('SketcherWorkbench')
- import PartDesignGui
- ActiveSketch = App.ActiveDocument.getObject('Sketch002')
- tv = Show.TempoVis(App.ActiveDocument)
- if ActiveSketch.ViewObject.HideDependent:
- objs = tv.get_all_dependent(ActiveSketch)
- objs = filter(lambda x: not x.TypeId.startswith("TechDraw::"), objs)
- objs = filter(lambda x: not x.TypeId.startswith("Drawing::"), objs)
- tv.hide(objs)
- if ActiveSketch.ViewObject.ShowSupport:
- tv.show([ref[0] for ref in ActiveSketch.Support if not ref[0].isDerivedFrom("PartDesign::Plane")])
- if ActiveSketch.ViewObject.ShowLinks:
- tv.show([ref[0] for ref in ActiveSketch.ExternalGeometry])
- tv.hide(ActiveSketch)
- ActiveSketch.ViewObject.TempoVis = tv
- del(tv)
- ActiveSketch = App.ActiveDocument.getObject('Sketch002')
- if ActiveSketch.ViewObject.RestoreCamera:
- ActiveSketch.ViewObject.TempoVis.saveCamera()
- Gui.SendMsgToActiveView("ViewFit")
- geoList = []
- geoList.append(Part.LineSegment(App.Vector(-74.156960,10.152035,0),App.Vector(-69.395996,10.152035,0)))
- geoList.append(Part.LineSegment(App.Vector(-69.395996,10.152035,0),App.Vector(-69.395996,3.430689,0)))
- geoList.append(Part.LineSegment(App.Vector(-69.395996,3.430689,0),App.Vector(-74.156960,3.430689,0)))
- geoList.append(Part.LineSegment(App.Vector(-74.156960,3.430689,0),App.Vector(-74.156960,10.152035,0)))
- App.ActiveDocument.Sketch002.addGeometry(geoList,False)
- conList = []
- conList.append(Sketcher.Constraint('Coincident',0,2,1,1))
- conList.append(Sketcher.Constraint('Coincident',1,2,2,1))
- conList.append(Sketcher.Constraint('Coincident',2,2,3,1))
- conList.append(Sketcher.Constraint('Coincident',3,2,0,1))
- conList.append(Sketcher.Constraint('Horizontal',0))
- conList.append(Sketcher.Constraint('Horizontal',2))
- conList.append(Sketcher.Constraint('Vertical',1))
- conList.append(Sketcher.Constraint('Vertical',3))
- App.ActiveDocument.Sketch002.addConstraint(conList)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.movePoint(3,0,App.Vector(0.700142,0.000000,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.movePoint(2,0,App.Vector(2.520508,0.000000,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.movePoint(0,0,App.Vector(0.000000,-0.980196,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.addConstraint(Sketcher.Constraint('DistanceX',0,2,-66.875488))
- App.ActiveDocument.Sketch002.addConstraint(Sketcher.Constraint('DistanceY',0,2,9.171839))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.addConstraint(Sketcher.Constraint('DistanceY',1,2,1,1,5.741150))
- App.ActiveDocument.Sketch002.setDatum(10,App.Units.Quantity('5.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.addConstraint(Sketcher.Constraint('DistanceX',0,1,0,2,4.060822))
- App.ActiveDocument.Sketch002.setDatum(11,App.Units.Quantity('5.060000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.setDatum(9,App.Units.Quantity('8.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.setDatum(8,App.Units.Quantity('-66.880000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.setDatum(8,App.Units.Quantity('-60.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.setDatum(8,App.Units.Quantity('-64.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.setDatum(8,App.Units.Quantity('-66.000000 mm'))
- App.ActiveDocument.recompute()
- geoList = []
- geoList.append(Part.LineSegment(App.Vector(-78.917915,8.891786,0),App.Vector(-75.277184,8.891786,0)))
- geoList.append(Part.LineSegment(App.Vector(-75.277184,8.891786,0),App.Vector(-75.277184,3.710747,0)))
- geoList.append(Part.LineSegment(App.Vector(-75.277184,3.710747,0),App.Vector(-78.917915,3.710747,0)))
- geoList.append(Part.LineSegment(App.Vector(-78.917915,3.710747,0),App.Vector(-78.917915,8.891786,0)))
- App.ActiveDocument.Sketch002.addGeometry(geoList,False)
- conList = []
- conList.append(Sketcher.Constraint('Coincident',4,2,5,1))
- conList.append(Sketcher.Constraint('Coincident',5,2,6,1))
- conList.append(Sketcher.Constraint('Coincident',6,2,7,1))
- conList.append(Sketcher.Constraint('Coincident',7,2,4,1))
- conList.append(Sketcher.Constraint('Horizontal',4))
- conList.append(Sketcher.Constraint('Horizontal',6))
- conList.append(Sketcher.Constraint('Vertical',5))
- conList.append(Sketcher.Constraint('Vertical',7))
- App.ActiveDocument.Sketch002.addConstraint(conList)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.movePoint(6,0,App.Vector(0.000000,0.420085,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.movePoint(4,0,App.Vector(0.000000,0.420085,0),1)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.addConstraint(Sketcher.Constraint('DistanceX',4,2,-75.277184))
- App.ActiveDocument.Sketch002.addConstraint(Sketcher.Constraint('DistanceY',4,2,9.311871))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.setDatum(21,App.Units.Quantity('9.170000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.addConstraint(Sketcher.Constraint('DistanceX',4,1,4,2,3.640731))
- App.ActiveDocument.Sketch002.setDatum(22,App.Units.Quantity('3.640000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.addConstraint(Sketcher.Constraint('DistanceY',7,1,7,2,5.039168))
- App.ActiveDocument.Sketch002.setDatum(23,App.Units.Quantity('5.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.addSymmetric([0,1,2,3,4,5,6],7,0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.addSymmetric([0,1,2,3,4,5,6],7,0)
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.addSymmetric([0,1,2,3,4,5,6,7],-1,0)
- App.ActiveDocument.recompute()
- Gui.getDocument('Unnamed').resetEdit()
- ActiveSketch = App.ActiveDocument.getObject('Sketch002')
- tv = ActiveSketch.ViewObject.TempoVis
- if tv:
- tv.restore()
- ActiveSketch.ViewObject.TempoVis = None
- del(tv)
- Gui.activateWorkbench('PartDesignWorkbench')
- App.getDocument('Unnamed').recompute()
- App.activeDocument().Body.newObject("PartDesign::Pocket","Pocket")
- App.activeDocument().Pocket.Profile = App.activeDocument().Sketch002
- App.activeDocument().Pocket.Length = 5.0
- Gui.activeDocument().hide("Sketch002")
- App.ActiveDocument.recompute()
- Gui.ActiveDocument.Pocket.ShapeColor=Gui.ActiveDocument.Body.ShapeColor
- Gui.ActiveDocument.Pocket.LineColor=Gui.ActiveDocument.Body.LineColor
- Gui.ActiveDocument.Pocket.PointColor=Gui.ActiveDocument.Body.PointColor
- Gui.ActiveDocument.Pocket.Transparency=Gui.ActiveDocument.Body.Transparency
- Gui.ActiveDocument.Pocket.DisplayMode=Gui.ActiveDocument.Body.DisplayMode
- Gui.activeDocument().setEdit('Pocket', 0)
- Gui.Selection.clearSelection()
- Gui.activeDocument().resetEdit()
- Gui.activateWorkbench('SketcherWorkbench')
- import PartDesignGui
- ActiveSketch = App.ActiveDocument.getObject('Sketch002')
- tv = Show.TempoVis(App.ActiveDocument)
- if ActiveSketch.ViewObject.HideDependent:
- objs = tv.get_all_dependent(ActiveSketch)
- objs = filter(lambda x: not x.TypeId.startswith("TechDraw::"), objs)
- objs = filter(lambda x: not x.TypeId.startswith("Drawing::"), objs)
- tv.hide(objs)
- if ActiveSketch.ViewObject.ShowSupport:
- tv.show([ref[0] for ref in ActiveSketch.Support if not ref[0].isDerivedFrom("PartDesign::Plane")])
- if ActiveSketch.ViewObject.ShowLinks:
- tv.show([ref[0] for ref in ActiveSketch.ExternalGeometry])
- tv.hide(ActiveSketch)
- ActiveSketch.ViewObject.TempoVis = tv
- del(tv)
- ActiveSketch = App.ActiveDocument.getObject('Sketch002')
- if ActiveSketch.ViewObject.RestoreCamera:
- ActiveSketch.ViewObject.TempoVis.saveCamera()
- App.ActiveDocument.Sketch002.setDatum(22,App.Units.Quantity('4.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.addConstraint(Sketcher.Constraint('DistanceX',12,1,12,2,3.640000))
- App.ActiveDocument.Sketch002.setDatum(40,App.Units.Quantity('4.000000 mm'))
- App.ActiveDocument.recompute()
- App.ActiveDocument.recompute()
- Gui.getDocument('Unnamed').resetEdit()
- ActiveSketch = App.ActiveDocument.getObject('Sketch002')
- tv = ActiveSketch.ViewObject.TempoVis
- if tv:
- tv.restore()
- ActiveSketch.ViewObject.TempoVis = None
- del(tv)
- Gui.activateWorkbench('PartDesignWorkbench')
- App.getDocument('Unnamed').recompute()
- App.activeDocument().Body.newObject("PartDesign::Pocket","Pocket")
- App.activeDocument().Pocket.Profile = App.activeDocument().Sketch002
- App.activeDocument().Pocket.Length = 5.0
- Gui.activeDocument().hide("Sketch002")
- App.ActiveDocument.recompute()
- Gui.ActiveDocument.Pocket.ShapeColor=Gui.ActiveDocument.Body.ShapeColor
- Gui.ActiveDocument.Pocket.LineColor=Gui.ActiveDocument.Body.LineColor
- Gui.ActiveDocument.Pocket.PointColor=Gui.ActiveDocument.Body.PointColor
- Gui.ActiveDocument.Pocket.Transparency=Gui.ActiveDocument.Body.Transparency
- Gui.ActiveDocument.Pocket.DisplayMode=Gui.ActiveDocument.Body.DisplayMode
- Gui.activeDocument().setEdit('Pocket', 0)
- Gui.Selection.clearSelection()
- Gui.activeDocument().resetEdit()
- Gui.activateWorkbench('SketcherWorkbench')
- import PartDesignGui
- ActiveSketch = App.ActiveDocument.getObject('Sketch002')
- tv = Show.TempoVis(App.ActiveDocument)
- if ActiveSketch.ViewObject.HideDependent:
- objs = tv.get_all_dependent(ActiveSketch)
- objs = filter(lambda x: not x.TypeId.startswith("TechDraw::"), objs)
- objs = filter(lambda x: not x.TypeId.startswith("Drawing::"), objs)
- tv.hide(objs)
- if ActiveSketch.ViewObject.ShowSupport:
- tv.show([ref[0] for ref in ActiveSketch.Support if not ref[0].isDerivedFrom("PartDesign::Plane")])
- if ActiveSketch.ViewObject.ShowLinks:
- tv.show([ref[0] for ref in ActiveSketch.ExternalGeometry])
- tv.hide(ActiveSketch)
- ActiveSketch.ViewObject.TempoVis = tv
- del(tv)
- ActiveSketch = App.ActiveDocument.getObject('Sketch002')
- if ActiveSketch.ViewObject.RestoreCamera:
- ActiveSketch.ViewObject.TempoVis.saveCamera()
- Gui.SendMsgToActiveView("ViewFit")
- App.ActiveDocument.Sketch002.addConstraint(Sketcher.Constraint('DistanceX',8,2,-66.000000))
- App.ActiveDocument.Sketch002.addConstraint(Sketcher.Constraint('DistanceY',8,2,-9.171839))
- App.ActiveDocument.recompute()
- App.ActiveDocument.Sketch002.setDatum(40,App.Units.Quantity('4.200000 mm'))
- App.ActiveDocument.recompute()
- Gui.getDocument('Unnamed').resetEdit()
- ActiveSketch = App.ActiveDocument.getObject('Sketch002')
- tv = ActiveSketch.ViewObject.TempoVis
- if tv:
- tv.restore()
- ActiveSketch.ViewObject.TempoVis = None
- del(tv)
- Gui.activateWorkbench('PartDesignWorkbench')
- App.getDocument('Unnamed').recompute()
- App.activeDocument().Body.newObject("PartDesign::Pocket","Pocket")
- App.activeDocument().Pocket.Profile = App.activeDocument().Sketch002
- App.activeDocument().Pocket.Length = 5.0
- Gui.activeDocument().hide("Sketch002")
- App.ActiveDocument.recompute()
- Gui.ActiveDocument.Pocket.ShapeColor=Gui.ActiveDocument.Body.ShapeColor
- Gui.ActiveDocument.Pocket.LineColor=Gui.ActiveDocument.Body.LineColor
- Gui.ActiveDocument.Pocket.PointColor=Gui.ActiveDocument.Body.PointColor
- Gui.ActiveDocument.Pocket.Transparency=Gui.ActiveDocument.Body.Transparency
- Gui.ActiveDocument.Pocket.DisplayMode=Gui.ActiveDocument.Body.DisplayMode
- Gui.activeDocument().setEdit('Pocket', 0)
- Gui.Selection.clearSelection()
- Gui.activeDocument().hide("Sketch002")
- App.ActiveDocument.Pocket.Length = 6.000000
- App.ActiveDocument.Pocket.Length2 = 100.000000
- App.ActiveDocument.Pocket.Type = 0
- App.ActiveDocument.Pocket.UpToFace = None
- App.ActiveDocument.Pocket.Reversed = 0
- App.ActiveDocument.Pocket.Midplane = 0
- App.ActiveDocument.Pocket.Offset = 0.000000
- Gui.activeDocument().hide("Pad")
- App.ActiveDocument.recompute()
- Gui.activeDocument().resetEdit()
- App.activeDocument().Body.Tip = None
- App.ActiveDocument.recompute()
- Gui.activeDocument().activeView().viewRight()
- Gui.SendMsgToActiveView("ViewFit")
- App.activeDocument().Body.newObject("PartDesign::Fillet","Fillet")
- App.activeDocument().Fillet.Base = (App.ActiveDocument.Pocket,["Edge54","Edge53","Edge51","Edge50","Edge48","Edge47"])
- Gui.Selection.clearSelection()
- Gui.activeDocument().hide("Pocket")
- App.ActiveDocument.recompute()
- Gui.ActiveDocument.Fillet.ShapeColor=Gui.ActiveDocument.Body.ShapeColor
- Gui.ActiveDocument.Fillet.LineColor=Gui.ActiveDocument.Body.LineColor
- Gui.ActiveDocument.Fillet.PointColor=Gui.ActiveDocument.Body.PointColor
- Gui.ActiveDocument.Fillet.Transparency=Gui.ActiveDocument.Body.Transparency
- Gui.ActiveDocument.Fillet.DisplayMode=Gui.ActiveDocument.Body.DisplayMode
- Gui.activeDocument().setEdit('Fillet', 0)
- Gui.Selection.clearSelection()
- Gui.activeDocument().resetEdit()
- App.activeDocument().Body.newObject("PartDesign::Chamfer","Chamfer")
- App.activeDocument().Chamfer.Base = (App.ActiveDocument.Pocket,["Edge54","Edge53","Edge51","Edge50","Edge48","Edge47"])
- Gui.Selection.clearSelection()
- Gui.activeDocument().hide("Pocket")
- App.ActiveDocument.recompute()
- Gui.ActiveDocument.Chamfer.ShapeColor=Gui.ActiveDocument.Body.ShapeColor
- Gui.ActiveDocument.Chamfer.LineColor=Gui.ActiveDocument.Body.LineColor
- Gui.ActiveDocument.Chamfer.PointColor=Gui.ActiveDocument.Body.PointColor
- Gui.ActiveDocument.Chamfer.Transparency=Gui.ActiveDocument.Body.Transparency
- Gui.ActiveDocument.Chamfer.DisplayMode=Gui.ActiveDocument.Body.DisplayMode
- Gui.activeDocument().setEdit('Chamfer', 0)
- Gui.Selection.clearSelection()
- Gui.Selection.clearSelection()
- App.ActiveDocument.Chamfer.Size = 2.000000
- App.ActiveDocument.Chamfer.Base = (App.ActiveDocument.Pocket,["Edge54","Edge53","Edge51","Edge50","Edge48","Edge47",])
- Gui.activeDocument().hide("Pocket")
- App.ActiveDocument.recompute()
- App.ActiveDocument.Chamfer.Size = 1.000000
- App.ActiveDocument.Chamfer.Base = (App.ActiveDocument.Pocket,["Edge54","Edge53","Edge51","Edge50","Edge48","Edge47",])
- Gui.activeDocument().hide("Pocket")
- App.ActiveDocument.recompute()
- Gui.activeDocument().resetEdit()
- App.activeDocument().Body.newObject("PartDesign::Chamfer","Chamfer001")
- App.activeDocument().Chamfer001.Base = (App.ActiveDocument.Chamfer,["Edge33","Edge45"])
- Gui.Selection.clearSelection()
- Gui.activeDocument().hide("Chamfer")
- App.ActiveDocument.recompute()
- Gui.ActiveDocument.Chamfer001.ShapeColor=Gui.ActiveDocument.Body.ShapeColor
- Gui.ActiveDocument.Chamfer001.LineColor=Gui.ActiveDocument.Body.LineColor
- Gui.ActiveDocument.Chamfer001.PointColor=Gui.ActiveDocument.Body.PointColor
- Gui.ActiveDocument.Chamfer001.Transparency=Gui.ActiveDocument.Body.Transparency
- Gui.ActiveDocument.Chamfer001.DisplayMode=Gui.ActiveDocument.Body.DisplayMode
- Gui.activeDocument().setEdit('Chamfer001', 0)
- Gui.Selection.clearSelection()
- Gui.Selection.clearSelection()
- App.ActiveDocument.Chamfer001.Size = 1.000000
- App.ActiveDocument.Chamfer001.Base = (App.ActiveDocument.Chamfer,["Edge33","Edge45",])
- Gui.activeDocument().hide("Chamfer")
- App.ActiveDocument.recompute()
- Gui.activeDocument().resetEdit()
- App.activeDocument().Body.newObject("PartDesign::Fillet","Fillet")
- App.activeDocument().Fillet.Base = (App.ActiveDocument.Chamfer001,["Edge36"])
- Gui.Selection.clearSelection()
- Gui.activeDocument().hide("Chamfer001")
- App.ActiveDocument.recompute()
- Gui.ActiveDocument.Fillet.ShapeColor=Gui.ActiveDocument.Body.ShapeColor
- Gui.ActiveDocument.Fillet.LineColor=Gui.ActiveDocument.Body.LineColor
- Gui.ActiveDocument.Fillet.PointColor=Gui.ActiveDocument.Body.PointColor
- Gui.ActiveDocument.Fillet.Transparency=Gui.ActiveDocument.Body.Transparency
- Gui.ActiveDocument.Fillet.DisplayMode=Gui.ActiveDocument.Body.DisplayMode
- Gui.activeDocument().setEdit('Fillet', 0)
- Gui.Selection.clearSelection()
- App.ActiveDocument.Fillet.Radius = 1.000000
- App.ActiveDocument.Fillet.Base = (App.ActiveDocument.Chamfer001,["Edge36",])
- Gui.activeDocument().hide("Chamfer001")
- App.ActiveDocument.recompute()
- Gui.activeDocument().resetEdit()
- App.activeDocument().Body.newObject("PartDesign::Fillet","Fillet001")
- App.activeDocument().Fillet001.Base = (App.ActiveDocument.Fillet,["Edge57","Edge78","Edge79"])
- Gui.Selection.clearSelection()
- Gui.activeDocument().hide("Fillet")
- App.ActiveDocument.recompute()
- Gui.ActiveDocument.Fillet001.ShapeColor=Gui.ActiveDocument.Body.ShapeColor
- Gui.ActiveDocument.Fillet001.LineColor=Gui.ActiveDocument.Body.LineColor
- Gui.ActiveDocument.Fillet001.PointColor=Gui.ActiveDocument.Body.PointColor
- Gui.ActiveDocument.Fillet001.Transparency=Gui.ActiveDocument.Body.Transparency
- Gui.ActiveDocument.Fillet001.DisplayMode=Gui.ActiveDocument.Body.DisplayMode
- Gui.activeDocument().setEdit('Fillet001', 0)
- Gui.Selection.clearSelection()
- App.ActiveDocument.Fillet001.Radius = 1.000000
- App.ActiveDocument.Fillet001.Base = (App.ActiveDocument.Fillet,["Edge57","Edge78","Edge79",])
- Gui.activeDocument().hide("Fillet")
- App.ActiveDocument.recompute()
- Gui.activeDocument().resetEdit()
- App.activeDocument().Body.newObject("PartDesign::Fillet","Fillet002")
- App.activeDocument().Fillet002.Base = (App.ActiveDocument.Fillet001,["Edge87","Edge88"])
- Gui.Selection.clearSelection()
- Gui.activeDocument().hide("Fillet001")
- App.ActiveDocument.recompute()
- Gui.ActiveDocument.Fillet002.ShapeColor=Gui.ActiveDocument.Body.ShapeColor
- Gui.ActiveDocument.Fillet002.LineColor=Gui.ActiveDocument.Body.LineColor
- Gui.ActiveDocument.Fillet002.PointColor=Gui.ActiveDocument.Body.PointColor
- Gui.ActiveDocument.Fillet002.Transparency=Gui.ActiveDocument.Body.Transparency
- Gui.ActiveDocument.Fillet002.DisplayMode=Gui.ActiveDocument.Body.DisplayMode
- Gui.activeDocument().setEdit('Fillet002', 0)
- Gui.Selection.clearSelection()
- App.ActiveDocument.Fillet002.Radius = 2.000000
- App.ActiveDocument.Fillet002.Base = (App.ActiveDocument.Fillet001,["Edge87","Edge88",])
- Gui.activeDocument().hide("Fillet001")
- App.ActiveDocument.recompute()
- Gui.activeDocument().resetEdit()
- Gui.SendMsgToActiveView("ViewFit")
- Gui.activateWorkbench("DraftWorkbench")
- import PartDesignGui
- import Draft
- text = Draft.makeText(["King"],point=FreeCAD.Vector(-46.0,72.0,0.0))
- Draft.autogroup(text)
- FreeCADGui.getDocument("Unnamed").getObject("Text").FontSize = '1.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text").FontSize = '2.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text").FontSize = '3.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text").FontSize = '4.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text").FontSize = '5.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text").FontSize = '6.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text").FontSize = '7.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text").FontSize = '8.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text").FontSize = '9.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text").FontSize = '10.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text").FontSize = '11.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text").TextColor = (0.00,0.67,1.00)
- text = Draft.makeText(["MD Harrington"],point=FreeCAD.Vector(-61.0,19.999999999999996,0.0))
- Draft.autogroup(text)
- FreeCADGui.getDocument("Unnamed").getObject("Text001").FontSize = '1.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text001").FontSize = '2.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text001").FontSize = '3.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text001").FontSize = '4.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text001").FontSize = '5.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text001").FontSize = '6.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text001").FontSize = '7.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text001").FontSize = '8.2 mm'
- FreeCADGui.getDocument("Unnamed").getObject("Text001").TextColor = (0.00,1.00,1.00)
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,1),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,2),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,3),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,4),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,5),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,6),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,7),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,8),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,9),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,10),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,11),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,12),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,13),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,14),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,15),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,16),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,17),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,18),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,19),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,20),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,21),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,22),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,23),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,24),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,25),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,26),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,27),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,28),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,29),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,30),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,31),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,32),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,33),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,34),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,35),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,36),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,37),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,38),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,39),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,40),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,41),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,42),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,43),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,44),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,45),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,46),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,47),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,48),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,49),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,50),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,51),App.Rotation(App.Vector(0,0,1),0))
- FreeCAD.getDocument("Unnamed").getObject("Text001").Placement = App.Placement(App.Vector(-61,20,52),App.Rotation(App.Vector(0,0,1),0))
- Gui.SendMsgToActiveView("ViewFit")
- Gui.SendMsgToActiveView("Save")
- App.getDocument("Unnamed").save()
- Sod it Ill sort that later !!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement