All translations
Enter a message name below to show all available translations.
Found 6 translations.
Name | Current message text |
---|---|
h Deutsch (de) | ===Code=== {{Code|code= ## Ball-bearing Skript ## 11.08.2016 von r-frank (BPLRFE/LearnFreeCAD on Youtube) ## basierend auf dem ball bearing script by JMG ## (http://linuxforanengineer.blogspot.de/2013/08/free-cad-bearing-script.html) # #um Grundkoerper einzufuegen import Part #um die Position der Kugeln berechnen zu koennen import math #zum Bewegen des Torus from FreeCAD import Base # #Werte# #(Radius des Schaftes/innerer Radius des inneren Ringes) R1=15.0 #(Aussenradius des Innenringes) R2=25.0 #(Innenradius des Aussenringes) R3=30.0 #(Aussenradius des Aussenringes) R4=40.0 #(Dicke des Lagers) TH=15.0 #(Anzahl der Kugeln) NBall=10 #(Radius der Kugeln) RBall=5.0 #(Verrundungs-Radius) RR=1 #Erste Koordinate des Zentrums der Kugel CBall=((R3-R2)/2)+R2 #Zweite Koordinate des Zentrums der Kugel PBall=TH/2 # #Erstelle neues Dokument App.newDocument("Unnamed") App.setActiveDocument("Unnamed") App.ActiveDocument=App.getDocument("Unnamed") Gui.ActiveDocument=Gui.getDocument("Unnamed") # #Innerer Ring# B1=Part.makeCylinder(R1,TH) B2=Part.makeCylinder(R2,TH) IR=B2.cut(B1) #Kanten auswaehlen und Radius anbringen Bedges=IR.Edges IRF=IR.makeFillet(RR,Bedges) #Rille erstellen und Koerper einblenden T1=Part.makeTorus(CBall,RBall) T1.translate(Base.Vector(0,0,TH/2)) InnerRing=IRF.cut(T1) Part.show(InnerRing) # #Aeusserer Ring# B3=Part.makeCylinder(R3,TH) B4=Part.makeCylinder(R4,TH) OR=B4.cut(B3) #Kanten auswaehlen und Radius anbringen Bedges=OR.Edges ORF=OR.makeFillet(RR,Bedges) #Rille erstellen und Koerper einblenden T2=Part.makeTorus(CBall,RBall) T2.translate(Base.Vector(0,0,TH/2)) OuterRing=ORF.cut(T2) Part.show(OuterRing) # #Kugeln# for i in range(NBall): Ball=Part.makeSphere(RBall) Alpha=(i*2*math.pi)/NBall BV=(CBall*math.cos(Alpha),CBall*math.sin(Alpha),TH/2) Ball.translate(BV) Part.show(Ball) # #Und das Ganze noch huebsch machen ...# App.activeDocument().recompute() Gui.activeDocument().activeView().viewAxometric() Gui.SendMsgToActiveView("ViewFit") }} |
h English (en) | ===Code=== {{Code|code= ## Ball-bearing script ## 11.08.2016 by r-frank (BPLRFE/LearnFreeCAD on Youtube) ## based on ball bearing script by JMG ## (http://linuxforanengineer.blogspot.de/2013/08/free-cad-bearing-script.html) # #needed for inserting primitives import Part #needed for calculating the positions of the balls import math #needed for translation of torus from FreeCAD import Base # #VALUES# #(radius of shaft/inner radius of inner ring) R1=15.0 #(outer radius of inner ring) R2=25.0 #(inner radius of outer ring) R3=30.0 #(outer radius of outer ring) R4=40.0 #(thickness of bearing) TH=15.0 #(number of balls) NBall=10 #(radius of ball) RBall=5.0 #(rounding radius for fillets) RR=1 #first coordinate of center of ball CBall=((R3-R2)/2)+R2 #second coordinate of center of ball PBall=TH/2 # #Create new document App.newDocument("Unnamed") App.setActiveDocument("Unnamed") App.ActiveDocument=App.getDocument("Unnamed") Gui.ActiveDocument=Gui.getDocument("Unnamed") # #Inner Ring# B1=Part.makeCylinder(R1,TH) B2=Part.makeCylinder(R2,TH) IR=B2.cut(B1) #get edges and apply fillets Bedges=IR.Edges IRF=IR.makeFillet(RR,Bedges) #create groove and show shape T1=Part.makeTorus(CBall,RBall) T1.translate(Base.Vector(0,0,TH/2)) InnerRing=IRF.cut(T1) Part.show(InnerRing) # #Outer Ring# B3=Part.makeCylinder(R3,TH) B4=Part.makeCylinder(R4,TH) OR=B4.cut(B3) #get edges and apply fillets Bedges=OR.Edges ORF=OR.makeFillet(RR,Bedges) #create groove and show shape T2=Part.makeTorus(CBall,RBall) T2.translate(Base.Vector(0,0,TH/2)) OuterRing=ORF.cut(T2) Part.show(OuterRing) # #Balls# for i in range(NBall): Ball=Part.makeSphere(RBall) Alpha=(i*2*math.pi)/NBall BV=(CBall*math.cos(Alpha),CBall*math.sin(Alpha),TH/2) Ball.translate(BV) Part.show(Ball) # #Make it pretty# App.activeDocument().recompute() Gui.activeDocument().activeView().viewAxometric() Gui.SendMsgToActiveView("ViewFit") }} |
h français (fr) | ===Code=== {{Code|code= ## Ball-bearing script ## 11.08.2016 by r-frank (BPLRFE/LearnFreeCAD on Youtube) ## based on ball bearing script by JMG ## (http://linuxforanengineer.blogspot.de/2013/08/free-cad-bearing-script.html) # #needed for inserting primitives import Part #needed for calculating the positions of the balls import math #needed for translation of torus from FreeCAD import Base # #VALUES# #(radius of shaft/inner radius of inner ring) R1=15.0 #(outer radius of inner ring) R2=25.0 #(inner radius of outer ring) R3=30.0 #(outer radius of outer ring) R4=40.0 #(thickness of bearing) TH=15.0 #(number of balls) NBall=10 #(radius of ball) RBall=5.0 #(rounding radius for fillets) RR=1 #first coordinate of center of ball CBall=((R3-R2)/2)+R2 #second coordinate of center of ball PBall=TH/2 # #Create new document App.newDocument("Unnamed") App.setActiveDocument("Unnamed") App.ActiveDocument=App.getDocument("Unnamed") Gui.ActiveDocument=Gui.getDocument("Unnamed") # #Inner Ring# B1=Part.makeCylinder(R1,TH) B2=Part.makeCylinder(R2,TH) IR=B2.cut(B1) #get edges and apply fillets Bedges=IR.Edges IRF=IR.makeFillet(RR,Bedges) #create groove and show shape T1=Part.makeTorus(CBall,RBall) T1.translate(Base.Vector(0,0,TH/2)) InnerRing=IRF.cut(T1) Part.show(InnerRing) # #Outer Ring# B3=Part.makeCylinder(R3,TH) B4=Part.makeCylinder(R4,TH) OR=B4.cut(B3) #get edges and apply fillets Bedges=OR.Edges ORF=OR.makeFillet(RR,Bedges) #create groove and show shape T2=Part.makeTorus(CBall,RBall) T2.translate(Base.Vector(0,0,TH/2)) OuterRing=ORF.cut(T2) Part.show(OuterRing) # #Balls# for i in range(NBall): Ball=Part.makeSphere(RBall) Alpha=(i*2*math.pi)/NBall BV=(CBall*math.cos(Alpha),CBall*math.sin(Alpha),TH/2) Ball.translate(BV) Part.show(Ball) # #Make it pretty# App.activeDocument().recompute() Gui.activeDocument().activeView().viewAxometric() Gui.SendMsgToActiveView("ViewFit") }} |
h italiano (it) | ===Codice=== {{Code|code= ## Ball-bearing script ## 11.08.2016 by r-frank (BPLRFE/LearnFreeCAD on Youtube) ## based on ball bearing script by JMG ## (http://linuxforanengineer.blogspot.de/2013/08/free-cad-bearing-script.html) # #needed for inserting primitives import Part #needed for calculating the positions of the balls import math #needed for translation of torus from FreeCAD import Base # #VALUES# #(radius of shaft/inner radius of inner ring) R1=15.0 #(outer radius of inner ring) R2=25.0 #(inner radius of outer ring) R3=30.0 #(outer radius of outer ring) R4=40.0 #(thickness of bearing) TH=15.0 #(number of balls) NBall=10 #(radius of ball) RBall=5.0 #(rounding radius for fillets) RR=1 #first coordinate of center of ball CBall=((R3-R2)/2)+R2 #second coordinate of center of ball PBall=TH/2 # #Create new document App.newDocument("Unnamed") App.setActiveDocument("Unnamed") App.ActiveDocument=App.getDocument("Unnamed") Gui.ActiveDocument=Gui.getDocument("Unnamed") # #Inner Ring# B1=Part.makeCylinder(R1,TH) B2=Part.makeCylinder(R2,TH) IR=B2.cut(B1) #get edges and apply fillets Bedges=IR.Edges IRF=IR.makeFillet(RR,Bedges) #create groove and show shape T1=Part.makeTorus(CBall,RBall) T1.translate(Base.Vector(0,0,TH/2)) InnerRing=IRF.cut(T1) Part.show(InnerRing) # #Outer Ring# B3=Part.makeCylinder(R3,TH) B4=Part.makeCylinder(R4,TH) OR=B4.cut(B3) #get edges and apply fillets Bedges=OR.Edges ORF=OR.makeFillet(RR,Bedges) #create groove and show shape T2=Part.makeTorus(CBall,RBall) T2.translate(Base.Vector(0,0,TH/2)) OuterRing=ORF.cut(T2) Part.show(OuterRing) # #Balls# for i in range(NBall): Ball=Part.makeSphere(RBall) Alpha=(i*2*math.pi)/NBall BV=(CBall*math.cos(Alpha),CBall*math.sin(Alpha),TH/2) Ball.translate(BV) Part.show(Ball) # #Make it pretty# App.activeDocument().recompute() Gui.activeDocument().activeView().viewAxometric() Gui.SendMsgToActiveView("ViewFit") }} |
h polski (pl) | ===Kod=== {{Code|code= ## Ball-bearing script ## 11.08.2016 by r-frank (BPLRFE/LearnFreeCAD on Youtube) ## based on ball bearing script by JMG ## (http://linuxforanengineer.blogspot.de/2013/08/free-cad-bearing-script.html) # #needed for inserting primitives import Part #needed for calculating the positions of the balls import math #needed for translation of torus from FreeCAD import Base # #VALUES# #(radius of shaft/inner radius of inner ring) R1=15.0 #(outer radius of inner ring) R2=25.0 #(inner radius of outer ring) R3=30.0 #(outer radius of outer ring) R4=40.0 #(thickness of bearing) TH=15.0 #(number of balls) NBall=10 #(radius of ball) RBall=5.0 #(rounding radius for fillets) RR=1 #first coordinate of center of ball CBall=((R3-R2)/2)+R2 #second coordinate of center of ball PBall=TH/2 # #Create new document App.newDocument("Unnamed") App.setActiveDocument("Unnamed") App.ActiveDocument=App.getDocument("Unnamed") Gui.ActiveDocument=Gui.getDocument("Unnamed") # #Inner Ring# B1=Part.makeCylinder(R1,TH) B2=Part.makeCylinder(R2,TH) IR=B2.cut(B1) #get edges and apply fillets Bedges=IR.Edges IRF=IR.makeFillet(RR,Bedges) #create groove and show shape T1=Part.makeTorus(CBall,RBall) T1.translate(Base.Vector(0,0,TH/2)) InnerRing=IRF.cut(T1) Part.show(InnerRing) # #Outer Ring# B3=Part.makeCylinder(R3,TH) B4=Part.makeCylinder(R4,TH) OR=B4.cut(B3) #get edges and apply fillets Bedges=OR.Edges ORF=OR.makeFillet(RR,Bedges) #create groove and show shape T2=Part.makeTorus(CBall,RBall) T2.translate(Base.Vector(0,0,TH/2)) OuterRing=ORF.cut(T2) Part.show(OuterRing) # #Balls# for i in range(NBall): Ball=Part.makeSphere(RBall) Alpha=(i*2*math.pi)/NBall BV=(CBall*math.cos(Alpha),CBall*math.sin(Alpha),TH/2) Ball.translate(BV) Part.show(Ball) # #Make it pretty# App.activeDocument().recompute() Gui.activeDocument().activeView().viewAxometric() Gui.SendMsgToActiveView("ViewFit") }} |
h română (ro) | ===Code=== {{Code|code= ## Ball-bearing script ## 11.08.2016 by r-frank (BPLRFE/LearnFreeCAD on Youtube) ## based on ball bearing script by JMG ## (http://linuxforanengineer.blogspot.de/2013/08/free-cad-bearing-script.html) # #needed for inserting primitives import Part #needed for calculating the positions of the balls import math #needed for translation of torus from FreeCAD import Base # #VALUES# #(radius of shaft/inner radius of inner ring) R1=15.0 #(outer radius of inner ring) R2=25.0 #(inner radius of outer ring) R3=30.0 #(outer radius of outer ring) R4=40.0 #(thickness of bearing) TH=15.0 #(number of balls) NBall=10 #(radius of ball) RBall=5.0 #(rounding radius for fillets) RR=1 #first coordinate of center of ball CBall=((R3-R2)/2)+R2 #second coordinate of center of ball PBall=TH/2 # #Create new document App.newDocument("Unnamed") App.setActiveDocument("Unnamed") App.ActiveDocument=App.getDocument("Unnamed") Gui.ActiveDocument=Gui.getDocument("Unnamed") # #Inner Ring# B1=Part.makeCylinder(R1,TH) B2=Part.makeCylinder(R2,TH) IR=B2.cut(B1) #get edges and apply fillets Bedges=IR.Edges IRF=IR.makeFillet(RR,Bedges) #create groove and show shape T1=Part.makeTorus(CBall,RBall) T1.translate(Base.Vector(0,0,TH/2)) InnerRing=IRF.cut(T1) Part.show(InnerRing) # #Outer Ring# B3=Part.makeCylinder(R3,TH) B4=Part.makeCylinder(R4,TH) OR=B4.cut(B3) #get edges and apply fillets Bedges=OR.Edges ORF=OR.makeFillet(RR,Bedges) #create groove and show shape T2=Part.makeTorus(CBall,RBall) T2.translate(Base.Vector(0,0,TH/2)) OuterRing=ORF.cut(T2) Part.show(OuterRing) # #Balls# for i in range(NBall): Ball=Part.makeSphere(RBall) Alpha=(i*2*math.pi)/NBall BV=(CBall*math.cos(Alpha),CBall*math.sin(Alpha),TH/2) Ball.translate(BV) Part.show(Ball) # #Make it pretty# App.activeDocument().recompute() Gui.activeDocument().activeView().viewAxometric() Gui.SendMsgToActiveView("ViewFit") }} |