Created
April 13, 2017 14:45
-
-
Save Foadsf/e839f83151541f546a3e0d49fc1c7c6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test1 = App.newDocument("Test1") | |
cylinder=test1.addObject("Part::Box","Cylinder") | |
cylinder.Height = '20 mm' | |
cylinder.Width = '5 mm' | |
cylinder.Length = '40 mm' | |
myvec = App.Vector(5,0,5) | |
myvec_2 = App.Vector(0,0,0) | |
mybox=test1.addObject("Part::Box","Mybox") | |
mybox.Height = '5 mm' | |
mybox.Width = '15 mm' | |
mybox.Length = '10 mm' | |
mybox.Placement.Base = myvec | |
mybox_2=test1.addObject("Part::Box","Mybox_2") | |
mybox_2.Height = '5 mm' | |
mybox_2.Width = '10 mm' | |
mybox_2.Length = '20 mm' | |
mybox_2.Placement.Base = myvec_2 | |
myfus = test1.addObject("Part::Fuse","myFus") | |
myfus.Base = mybox | |
myfus.Tool = mybox_2 | |
# mybox.Visibility=False | |
# mybox_2.Visibility=False | |
mycut= test1.addObject("Part::Cut","myCut") | |
mycut.Base = cylinder | |
mycut.Tool = myfus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment