Arch: Fixed CTH profiles - fixes #2826

This commit is contained in:
Yorik van Havre
2018-01-12 14:07:46 -02:00
parent c44af23f11
commit a8ab24abae
2 changed files with 3 additions and 3 deletions

View File

@@ -118,9 +118,9 @@ class _ProfileC(_Profile):
import Part
pl = obj.Placement
c1=Part.Circle()
c1.Radius=obj.OutDiameter.Value
c1.Radius=obj.OutDiameter.Value/2
c2=Part.Circle()
c2.Radius=obj.OutDiameter.Value-2*obj.Thickness.Value
c2.Radius=obj.OutDiameter.Value/2-obj.Thickness.Value
cs1=c1.toShape()
cs2=c2.toShape()
p=Part.makeRuledSurface(cs2,cs1)

View File

@@ -8,7 +8,7 @@
#U= U-profile
###########################################
#Circular tube
#Category,Name,H,Outside diameter,Thickness
#Category,Name,C,Outside diameter,Thickness
CTH,CTH423,C,42.4,3.2
#H- or I-profile
#Category,Name,H,width,height,web thickness,flange thickness
1 #Data structure:
8 #U= U-profile
9 ###########################################
10 #Circular tube
11 #Category,Name,H,Outside diameter,Thickness #Category,Name,C,Outside diameter,Thickness
12 CTH,CTH423,C,42.4,3.2
13 #H- or I-profile
14 #Category,Name,H,width,height,web thickness,flange thickness