Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def Activated(self):
FreeCADGui.Control.showDialog(uForms.dpCalcDialog())

def GetResources(self):
return{'Pixmap':os.path.join(os.path.dirname(os.path.abspath(__file__)),"iconz","delta.svg"),'MenuText':'Pressure loss calculator','ToolTip':'Calculate pressure loss in "pypes" using ChEDL libraries.\n See __doc__ of the module for futher information.'}
return{'Pixmap':os.path.join(os.path.dirname(os.path.abspath(__file__)),"iconz","delta.svg"),'MenuText':'Pressure loss calculator','ToolTip':'Calculate pressure loss in "pypes" using ChEDL libraries.\n See __doc__ of the module for further information.'}

class selectSolids:

Expand Down
2 changes: 1 addition & 1 deletion fCmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def beamAx(beam, vShapeRef=None):
return beam.Placement.Rotation.multVec(vShapeRef).normalize()

def getDistance(shapes=None):
'measure the lenght of an edge or the distance of two shapes'
'measure the length of an edge or the distance of two shapes'
if not shapes:
shapes=[y for x in FreeCADGui.Selection.getSelectionEx() for y in x.SubObjects if hasattr(y,'ShapeType')]
if len(shapes)==1 and shapes[0].ShapeType=='Edge':
Expand Down
10 changes: 5 additions & 5 deletions pCmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,9 @@ def makeFlange(propList=[], pos=None, Z=None):
f (float): bolts holes diameter
t (float): flange thickness
n (int): nr. of bolts
trf (float): raised-face thikness - OPTIONAL -
trf (float): raised-face thickness - OPTIONAL -
drf (float): raised-face diameter - OPTIONAL -
twn (float): welding-neck thikness - OPTIONAL -
twn (float): welding-neck thickness - OPTIONAL -
dwn (float): welding-neck diameter - OPTIONAL -
ODp (float): outside diameter of pipe for wn flanges - OPTIONAL -
Default is "DN50 (PN16)"
Expand Down Expand Up @@ -386,9 +386,9 @@ def doFlanges(propList=["DN50", "SO", 160, 60.3, 132, 14, 15, 4, 0, 0, 0, 0, 0],
f (float): bolts holes diameter
t (float): flange thickness
n (int): nr. of bolts
trf (float): raised-face thikness - OPTIONAL -
trf (float): raised-face thickness - OPTIONAL -
drf (float): raised-face diameter - OPTIONAL -
twn (float): welding-neck thikness - OPTIONAL -
twn (float): welding-neck thickness - OPTIONAL -
dwn (float): welding-neck diameter - OPTIONAL -
ODp (float): outside diameter of pipe for wn flanges - OPTIONAL -
pypeline = string
Expand Down Expand Up @@ -935,7 +935,7 @@ def getElbowPort(elbow, portId=0):
def rotateTheElbowPort(curve=None, port=0, ang=45):
'''
rotateTheElbowPort(curve=None, port=0, ang=45)
Rotates one curve aroud one of its circular edges.
Rotates one curve around one of its circular edges.
'''
if curve==None:
try:
Expand Down
10 changes: 5 additions & 5 deletions pFeatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ class Flange(pypeType):
f (float): bolts holes diameter
t (float): flange thickness
n (int): nr. of bolts
trf (float): raised-face thikness - OPTIONAL -
trf (float): raised-face thickness - OPTIONAL -
drf (float): raised-face diameter - OPTIONAL -
twn (float): welding-neck thikness - OPTIONAL -
twn (float): welding-neck thickness - OPTIONAL -
dwn (float): welding-neck diameter - OPTIONAL -
ODp (float): outside diameter of pipe for wn flanges - OPTIONAL -
'''
Expand Down Expand Up @@ -250,7 +250,7 @@ def __init__(self, obj,DN="DN50",OD=60.3,OD2=48.3,thk=3, thk2=None, H=None, conc
obj.thk2=thk
else:
obj.thk2=thk2
obj.addProperty("App::PropertyBool","calcH","Reduct","Make the lenght variable")
obj.addProperty("App::PropertyBool","calcH","Reduct","Make the length variable")
obj.addProperty("App::PropertyLength","Height","Reduct","Length of reduct")
if not H:
obj.calcH=True
Expand Down Expand Up @@ -468,8 +468,8 @@ def __init__(self,obj,L=800,W=400,H=500,thk1=6, thk2=8):
obj.addProperty("App::PropertyLength","L","Tank","Tank's length").L=L
obj.addProperty("App::PropertyLength","W","Tank","Tank's width").W=W
obj.addProperty("App::PropertyLength","H","Tank","Tank's height").H=H
obj.addProperty("App::PropertyLength","thk1","Tank","Thikness of tank's shell").thk1=thk1
obj.addProperty("App::PropertyLength","thk2","Tank","Thikness of tank's top").thk2=thk2
obj.addProperty("App::PropertyLength","thk1","Tank","Thickness of tank's shell").thk1=thk1
obj.addProperty("App::PropertyLength","thk2","Tank","Thickness of tank's top").thk2=thk2
def onChanged(self, fp, prop):
return None
def execute(self, fp):
Expand Down
2 changes: 1 addition & 1 deletion pForms.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ class insertUboltForm(dodoDialogs.protoPypeForm):
For position and orientation you can select
- one or more circular edges,
- nothing.
In case one pipe is selected, its properties are aplied to the U-bolt.
In case one pipe is selected, its properties are applied to the U-bolt.
Available one button to reverse the orientation of the last or selected tubes.
'''
def __init__(self):
Expand Down