View Issue Details

IDProjectCategoryView StatusLast Update
0002826ArchBugpublic2018-01-12 16:09
Reporterruchg Assigned Toyorik  
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSFedora 25OS Version4.8.15-300.fc25.
Product Version0.16 
Summary0002826: When adding Circular profiles to profile.csv, instructions are incorrect
DescriptionThere are a couple of errors in the profile.csv file that impede the user from entering their own circular profiles.

First there is a copy and paste error.
#Data structure:
#Category, Name, Profile class, geometric data...
#Possible profile classes are:
#C=Circular tube
#H= H- or I-profile
#R= Rectangular
#RH= Rectangular hollow
#U= U-profile
###########################################
#Circular tube
#Category,Name,H,Outside diameter,Thickness
CTH,CTH423,C,42.4,3.2

In the last comment, the H profile class should be a C

Further the "Outside diameter" needs to be changed to "Outside radius," and "Thickness" should be changed to "half wall thickness."

This is the only profile I've looked at.

I've noticed that the rectangular 2x4in profile is the size of a kiln dried wooden stud 1.5x3.5in. It might be wise to add some sort of alert that these are nominal dried wood dimensions and not as stated.
Steps To ReproduceUsing a text editor, and the correct permissions, edit file profile.csv and add two circular profiles as below.

CTH,10x2mm_Pipe,C,10,2
CTH,10x2mm_PipeTry1,C,5,1

Save and exit.

Start FreeCAD and a new drawing
Switch to Arch Workbench, select xy plane
Select Structure, Category CTH and the 10x2mm_Pipe preset. Place at X=Y=Z=0
Click on an empty area of the geometry window to clear the highlight
Select Structure, Category CTH and the 10x2mm_PipeTry1 preset. Place at X=30; Y=Z=0
Start Drawing Dimensioning Workbench, and add an A3 Landscape (plain) form
Highlight both Structures and Insert View into active drawing.
Select both Views in the Page and move to X=Y=100
Create circular dimensions on the 4 ID&ODs
Create linear dimensions on the two thicknesses

The first gives a 20mm OD and a 4mm wall. The second gives a 10mm OD and a 2mm wall.

Additional InformationAlternately the issue could be addressed in the ArchProfile.py file.

If so, then there are a couple of minor errors that could be fixed there as well.

            
class _ProfileC(_Profile):
    '''A parametric circular tubeprofile. Profile data: [Outside diameter, Inside diameter]'''
a space is needed to separate tube and profile

class _ProfileU(_Profile):
    '''A parametric H or I beam profile. Profile data: [width, height, web thickness, flange thickness] (see http://en.wikipedia.org/wiki/I-beam forreference)'''
The comment is probably a cut and paste error and was not updated for the c-channel
If you are looking for a wikipedia article for this: https://en.wikipedia.org/wiki/Structural_channel
TagsNo tags attached.
FreeCAD Information

Activities

Kunda1

2017-01-17 20:46

administrator   ~0007855

Forum thread: http://forum.freecadweb.org/viewtopic.php?f=10&t=19992

yorik

2017-07-19 14:02

administrator   ~0009784

Will look into it!

yorik

2018-01-12 16:08

administrator   ~0010745

Fixed in https://github.com/FreeCAD/FreeCAD/commit/a8ab24abaee3a708e4d9f4358a0a12751aa6886b

Issue History

Date Modified Username Field Change
2017-01-02 00:14 ruchg New Issue
2017-01-17 20:46 Kunda1 Note Added: 0007855
2017-05-25 05:53 Kunda1 Project FreeCAD => Arch
2017-07-19 14:02 yorik Assigned To => yorik
2017-07-19 14:02 yorik Status new => assigned
2017-07-19 14:02 yorik Note Added: 0009784
2018-01-12 16:08 yorik Note Added: 0010745
2018-01-12 16:09 yorik Status assigned => closed
2018-01-12 16:09 yorik Resolution open => fixed