Community Bonding Period
- Discussion of a project on FreeCAD forum and on IRC.
- Compile Qt plugin of FreeCAD to load FreeCAD widgets in QT creator.
- Understanding the code of ArchRebar object.
- Added PlacementList property to the rebar object. The PlacementList holds the placement of all the rebars. Pull request.
1 June : Today, officially my all exams are over and from now onwards I will give my 100 percent to my GSoC project. I have written TODO tasks for upcoming two weeks.
2 June : I have found a couple of shortcomings bugs in my scripts which I have shared before community bonding period. Also discussed these bugs with my mentor.
3 June : Yesterday, Yorik (my mentor) gave some suggestion that how to fix these bugs. Today, I was trying to make the logic which will work on any type of reinforcement and trying to implement that logic through programming. Also, explored functions like
4 June : Today, I designed the taskpanel UI of straight rebar in Qtcreator by using FreeCAD widgets.
5 June : Today, I have integrated the task panel UI of straight rebar with backend scripts. This script will take input values from task panel and then pass input values to
makeStraightRebar() function which will create reinforcement of straight rebar in the structural element. For more detail, here are my commits.
6 June : Today, I have shared my scripts to the mentor for review. Here are the reviews: https://forum.freecadweb.org/viewtopic.php?f=8&t=22760&sid=edc3a89eda2a484d1af55128b1781e6b#p177059
7 June : Today, I have learnt that how to add an image in the dialog box using PySide. For eg. I simply added QLabel object at the top of the dialog box using Qtcreator and then use
label.setPixmap(QtGui.QPixmap(<path>)) command to add an image. Also, followed some links/tutorials to learn Inkscape.
8 June : Today, I have added checks to my Python code. These checks will verify that user have selected the face or not and if only user have selected a single face then only rebar object is created. Commit
- Discussed my approach with structural engineers and found the right way to create reinforcement in the structural element. Link
- Sent pull request to FreeCAD (master).
11 June: Not done too much, finalised what has done till now and made a planned for things coming in the next weeks.
12 June: Discussed following things with Yorik:
- How to get previous values (when reinforcement is created) when a user wants to re-edit the current reinforcement?
- Add properties to the rebar object.
- Constraint the sketch of the rebar object.
- How we can check the given sketch is rectangular or not?
- Understand functions present in a file.
- Added support when Structural element is derived from Sketch object.
Here is the commit.
- Solved a issue related to the placement of rebar. For e.g., Rebar position was not at correct position when structural element not located at orign. So, to fix this problem I have subtracted placement vector of structural element to the coordinates of rebar sketch.
- Refactored the code by creating the seperate file "Rebarfunc.py". This file contains basic functions which will use for creating any type reinforcement in the future.
- Sent pull request to FreeCAD master. Detail of PR: Defined custom function (setpropertyRebarShape) in the _ViewProviderRebar class. This function will add properties to the instance of _ViewProviderRebar class as per according to the rebar shape.
- Wrote code so that user will re-edit the rebar through rebar dialog box. To implement this, I have defined two new methods
editStraightRebar()in the StraighRebar.py file.
- Also added a couple of methods (
getParametersOfFace()) in the Rebarfunc.py file.
- Removed minor bugs in the existing code.
Here is the commit.
- Fix bug and added comments in the StraightRebar.py and Rebarfunc.py files. Commit
- Updated README.md Commit
- Imporoved of UI of dialog box of straight rebar and also set tab order on input fields of straight rebar dialog box.Commit
18 June: Today, a whole I was struggling to find a reason behind why rebar created in a wrong direction when user set an option "remove external geometry of base sketches when needed" in the Arch preferences. Finally, I found a reason behind this bug and then fix it. Commit
- Fix bug when user created reinforcement more than one times on the same structural element, rebar was not created at right position. Commit
- Discussed with Yorik on IRC, that where we can add properties of rebar and then after discussion I am added all the properties to a specific rebar shape as per according to rebar shape. Commit
- Created the UI dialog box for U-Shape rebar
- Also wrote a code for creating U-Shape rebar. Commit
- Implemented property top cover in U-Shape rebar instead of bent lenght.Commit
- Made an icon for U-Shape rebar and also improved Straight rebar icon.
- Added two FreeCAD command (
Arch_Rebar_UShape) in the RebarTools.py file. Commit
- Changed a title window heading of dialog box.
- Used standard button instead of custom button
- Assigned tasks which I will complete in the coming week.
Here is a commit.
- Added checks when sketch support is empty. Commit
- Learnt how to Constraint Internal Angle between two lines. (https://www.freecadweb.org/wiki/Constraint_InternalAngle)
- Added comment to code. Commit
- Discussed about license with Yorik.
- Create a UI of dialog box of stirrup shape rebar. Commit
- Experimenting how to create non-planar rebar because current FreeCAD reinforcement system is fully dependent on sketch which is strictly based on 2D. Then found a solution to create non-planar rebar by passing wire(may be planar or non-planar) to
- Also found some bugs which will come by using wire profile to create rebar. Link
- Discussed about old and new properties of Rebar object like distance and direction properties and implemented on Rebar object with Yorik
- Derived formula to get points when length and angle is given
- Wrote code of Stirrup.py file. Commit
- Discussed doubts regarding stirrup with Yorik on IRC.
- Learnt all the mathematical concepts of stirrup and derives formulas to find rounding length.
- Embedded dropdown list icons in my code. Commit
- Today, I have passed my first evaluation and got some good comments from my mentors.
- I have wrote the code for stirrup rebar. Commit
Here are the few screenshots of stirrup created from my code:
- Refactoring the existing code by added two seperate functions which calculates points of Straight and U-Shape rebar. Commit
- Added License to all the files. Commit
- Read the code of TaskThickness.cpp file.
- Implemented "Pick Selected Face" button in the straight rebar. Commit
- Introduced new property i.e. Bent Factor property in Stirrup. Commit
- Discussed about bar distribution on forum and IRC.
- Implementated "Pick Selected Face" button in all rebar shapes. Commits: 1, 2
getParametersOfFace()function according to Yorik's commit in the FreeCAD master. Change
- Introduced new custom spacing property in the Rebar object.
- Sent PR to FreeCAD master and Yorik merged my PR. Pull Request
- Added PickFaceSelectedLabel in all UI files. Commit
- Added Stirrup Rebar icon in dropdown list. Commit
- Designed a UI for rebar distribution. Commit
- Saw rebar distribution in Tekla Structures and also found some bugs in Tekla rebar distribution.
- Wrote code for implementing rebar distribution. Commit
- Made an icon for dialog box of rebar distribution.
- Added button for custom spacing in straight rebar dialog box and also added few function in RebarDistribution.py file. Commit
- Implemented uniform spacing in all rebar dialog box with a proper way. Commit
- Discussed about rebar distibution dialog box on the FreeCAD forum with all FreeCAD testers and also explained how rebar distribution works.
- Added support to rebar add-on when structure element is derived from any object(like wire, sketch etc.). Commit
- Also, read about direction of cosine and exploring properties of edges, faces and boundingbox.
- Added comments in Rebarfunc.py file. Commit
- Fix bug when user selects face whose length and width are equal. Commit
- As said my mentor, I added line in the code which change Label property to reflect rebar type(Straight Rebar, Stirrup Rebar etc) in the tree view.
- Create UI file for L-Shape rebar.
- Wrote code of L-Shape rebar. Commit
- Create differents icons of L-Shape rebar which shows orientation of rebar. Commit
- Added return statement in all make rebar functions. Commit
- Also screencast a video of L-Shape rebar. Video
- Imporved geometry of stirrup rebar. Commit
- Defined [code]translate()[/code] function in Rebarfunc.py file as said by Yorik.
- Discussed many things with Yorik on IRC related to Rebar-Addon.
- Added orientation property and separated side cover into parts i.e. left and right side cover. Commit
- Separate side cover of stirrup into left, right, top and bottom side cover. Commit
- Created different icons of U-Shape rebar according to the orientation property. Commit
- Separated side cover of L-Shape rebar into left and right side cover. Commit
- Introduced many new properties in straight rebar. The fields present in the straight rebar dialog box is changing according to orientation and cover along property.Commit
23 July: Didn't do too much just create icon of straight rebar when orientation is set to vertical. Commit
24 July: Discussed many new things regarding the drawing of a structural element with Yorik on IRC. https://forum.freecadweb.org/viewtopic.php?f=8&t=22760&start=150#p183274
25 July: Found one bug in Chakkree's script and fixed it. Here is the discussion: Forum Link
- I watched Regis stair reinforcement video.
- Fixed a bug regarding the direction of stirrup expand when a user selected base face of the structural element. Commit
30-31 July: Didn't do anything. Took rest for two days.
- Created dialog box for pop up image and implemented it. Commit
- Read Chakkree's code for implementing circular stirrup. Code
- Created UI of Circular stirrup. Commit
- Wrote code in CircularStirrup.py file. Commit
- Discussed issues related to circular stirrup with Yorik which comes when I set
Part::Helixas a base of rebar object.
5 Augest: GSoC party!.
Arch_Rebar_CircularStirrupin FreeCAD Commit
- Removed minor bugs in circular stirrup Commit
- Discussed few things related to circular stirrup with Chakkree's on the FreeCAD forum. https://forum.freecadweb.org/viewtopic.php?f=8&t=22760&start=200#p185451
- Discussed issue related to helical rebar shape on passing
Part::Helixobject as base object of Rebar on IRC.
- Implemented "Apply" button in all rebars dialog boxs. Commit
- Added description image in Bent shape rebar. Commit
- Fixed bug Commit: No reaction on changing diameter in LShape, UShape and Bent shape rebar. For detail, here is the discussion: https://forum.freecadweb.org/viewtopic.php?f=34&t=23637&p=186052#p186052
Part::Helixin circular(helical) rebar. Commit
- Added detail description icons of Striaght, LShape and Stirrup rebar (made by thschrader). Commit
- Added rebar tool dropdown list icons of bent shape and helical rebar (made by Yorik). Commit
- Created first wiki page on UShape rebar. Link
- Added help icon in all rebar dialogs. Commit
- Updated detailed description icon of helical rebar. Commit
- Replace Circular Stirrup name to Helical Rebar. Commit
- Created wiki pages(user documentation) for all rebar shapes. See given below:
- Added comments in StraightRebar.py, BentShapeRebar.py and HelicalRebar.py. Commit
- Added comments in UShapeRebar.py, LShapeRebar.py and Stirrup.py and Rebarfunc.py. Commit
21 August: Discussed few things related to rebar addon code with Yorik on IRC.
22 August: Added support in LShape dialog to take custom spacing when a user create rebar. Commit
23 August: Also enabled custom spacing button in rest of rebar dialog. Commit
24-26 August: Update README.md file on GitHub repo. Commit
27 August: Filled GSoC final evaluation form.