Dev logs of Rebar Addon for FreeCAD - GSoC project

Contributions from the participants, questions and answers to their projects.
Discussions of proposals for upcoming events.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
thschrader
Veteran
Posts: 3157
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Dev logs of Rebar Addon for FreeCAD - GSoC project

Post by thschrader »

bernd wrote: Wed Sep 06, 2017 10:48 pm @thomas
Am I right, all rebars are straight!
Yes! :)
User avatar
amrit3701
Posts: 343
Joined: Mon Jun 13, 2016 5:37 pm

Re: Dev logs of Rebar Addon for FreeCAD - GSoC project

Post by amrit3701 »

Hello everyone,

First of all, Merry Christmas and happy holidays to all! :)

I have added developer documentation section in a readme file.
http://me.amritpals.com/FreeCAD-Reinfor ... #developer Or
http://me.amritpals.com/FreeCAD-Reinfor ... index.html
http://me.amritpals.com/FreeCAD-Reinfor ... refman.pdf

Regards,
Amritpal Singh
Github, Like my work, sponsor me!
User avatar
chakkree
Posts: 327
Joined: Tue Jun 30, 2015 12:58 am
Location: Bangkok Thailand

Re: Dev logs of Rebar Addon for FreeCAD - GSoC project

Post by chakkree »

+1
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Dev logs of Rebar Addon for FreeCAD - GSoC project

Post by Kunda1 »

Nice! how did you generate the pdf ? is there an original document you used that could be updated in the future to update the PDF ? It was purely generated from doxygen ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
amrit3701
Posts: 343
Joined: Mon Jun 13, 2016 5:37 pm

Re: Dev logs of Rebar Addon for FreeCAD - GSoC project

Post by amrit3701 »

Kunda1 wrote: Tue Dec 26, 2017 12:06 pm
Nice! how did you generate the pdf ? is there an original document you used that could be updated in the future to update the PDF ? It was purely generated from doxygen ?
Hi @Kunda1

Yes, it was purely generated from Doxygen. ;) Here is my Doxyfile which produces documentation in both formats (Web and LaTeX): https://github.com/amrit3701/FreeCAD-Re ... file#L1599
Amritpal Singh
Github, Like my work, sponsor me!
User avatar
hardeeprai
Posts: 177
Joined: Sun May 23, 2010 2:41 pm
Location: Ludhiana, Punjab, India
Contact:

Re: Dev logs of Rebar Addon for FreeCAD - GSoC project

Post by hardeeprai »

It seems there are certain issues with the rebar module, or I am missing something. Cover taken in this makes working difficult, as we need to specify nominal cover which mean clear cover, so one would like to enter this cover as input, but this module expect effective cover, so either you will get different model or you need to do some calculations to convert cover to effective cover. To solve this issue (till such changes does not incorporated in module), Here are two files, change data in footingConf.py file and execute footing.py to get a pad type footing with reinforcement in both direction.

Screenshot of generated footing is also attached:
Footing.png
Footing.png (88.31 KiB) Viewed 2346 times
I am thankful to Amrit for his tutorial at https://www.freecadweb.org/wiki/Arch_Re ... #Scripting
Attachments
footing.py
(868 Bytes) Downloaded 79 times
footingConf.py
(348 Bytes) Downloaded 95 times
Last edited by hardeeprai on Mon Feb 12, 2018 2:28 am, edited 1 time in total.
--
H.S.Rai
User avatar
hardeeprai
Posts: 177
Joined: Sun May 23, 2010 2:41 pm
Location: Ludhiana, Punjab, India
Contact:

Re: Dev logs of Rebar Addon for FreeCAD - GSoC project

Post by hardeeprai »

hardeeprai wrote: Sun Feb 11, 2018 12:08 pmTo solve this issue (till such changes does not incorporated in module), Here are two files, change data in footingConf.py file and execute footing.py to get a pad type footing with reinforcement in both direction.
However I faced following thing. The changes done in footingConf.py does not become effective, till I close the FreeCAD and then restart it again. If I don't do so, on executing footing.py, on a new file, it still produce the results with old data.

Does this behaviour normal?

Please help me to avoid restart of FreeCAD again and again.

I am using FreeCAD-daily on Linux.

OS: Ubuntu 16.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12772 (Git)
Build type: None
Branch: master
Hash: c8c9b76f43d2c78c4afb65b756f3f07d626aac85
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)
--
H.S.Rai
User avatar
amrit3701
Posts: 343
Joined: Mon Jun 13, 2016 5:37 pm

Re: Dev logs of Rebar Addon for FreeCAD - GSoC project

Post by amrit3701 »

hardeeprai wrote: Sun Feb 11, 2018 12:14 pm However I faced following thing. The changes done in footingConf.py does not become effective, till I close the FreeCAD and then restart it again. If I don't do so, on executing footing.py, on a new file, it still produce the results with old data.

Does this behaviour normal?

Please help me to avoid restart of FreeCAD again and again.
It's a normal behaviour. :) You need to reload modules.

Code: Select all

# Importing modules
import footingConf
import footing 

# Changes done in footingCong.py
# Reload modules
reload(footingConf)
reload(footing)
Amritpal Singh
Github, Like my work, sponsor me!
alex_V
Posts: 17
Joined: Wed Aug 08, 2018 5:25 pm

Re: Dev logs of Rebar Addon for FreeCAD - GSoC project

Post by alex_V »

Hi, I used your Rebar Addon to create multiple rebars and stirrups in one step, I made some modifications to the code and now it takes to consideration the rebar length, overlaps and type of stirrup. But I'm having problems when structure have angle, the "Map a sketch to a face" doesn't work like I wanted :? The addon have the same problem, I don't know if I missing something or what could I do to create the rebar and stirrups despite the angle of the structure.

Great job with this addon!! I hope I can help with something

PS. I still don't know how to attach images properly, Sorry :!:
Attachments
001.png
001.png (240.04 KiB) Viewed 2102 times
002.png
002.png (277.74 KiB) Viewed 2102 times
003.png
003.png (247.7 KiB) Viewed 2102 times
004.png
004.png (276.47 KiB) Viewed 2102 times
005.png
005.png (366.1 KiB) Viewed 2102 times
User avatar
ebrahim raeyat
Posts: 625
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: Dev logs of Rebar Addon for FreeCAD - GSoC project

Post by ebrahim raeyat »

Thank you amrit for your great work. I am very interesting to it. is there any effort to port reinforcement to python3 and pyqt5?
very thanks.
Post Reply