Automate Reinforcement GSoC proposal

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!
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Automate Reinforcement GSoC proposal

Post by Kunda1 »

<!-- offtopic
Just wanted to put on your radar this cool macro: Automatic Light Gauge Steel Frame Creator macro + screencast. I wonder if this code could somehow be utilized in Rebars ?? Just curious. -->
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: Automate Reinforcement GSoC proposal

Post by amrit3701 »

Suraj Dadral wrote: Fri Jun 21, 2019 5:13 pm Hello everyone,
Till now, I have made new UI using which user can create and edit Single Tie Four Rebars from UI.
And related code can be found here:
https://github.com/SurajDadral/FreeCAD- ... mate-newui

In new UI, I have implemented all suggestions by @hardeeprai except point 2 i.e. Add help button for every field.

Now, I am implementing creation and editing of secondary rebars.
I will try to implement it before 24 June. And will generate documentation for code.
Hi Suraj, I arrived in India and available from right now.

I tested your new dialog code and it works well. Now, we are on the right track. :D

The XDir Secondary Rebars and YDir Secondary Rebars is not working. Also, tell me how it's different from Main Rebars?

Screenshot after testing.
Screenshot 2019-06-23 at 8.51.32 PM.png
Screenshot 2019-06-23 at 8.51.32 PM.png (578.67 KiB) Viewed 1837 times
Amritpal Singh
Github, Like my work, sponsor me!
User avatar
Suraj Dadral
Posts: 307
Joined: Fri Sep 07, 2018 5:32 pm
Contact:

Re: Automate Reinforcement GSoC proposal

Post by Suraj Dadral »

amrit3701 wrote: Sun Jun 23, 2019 3:59 pm
Hi Suraj, I arrived in India and available from right now.

I tested your new dialog code and it works well. Now, we are on the right track. :D
Thanks
amrit3701 wrote: Sun Jun 23, 2019 3:59 pm
The XDir Secondary Rebars and YDir Secondary Rebars is not working. Also, tell me how it's different from Main Rebars?
Now, it is working and user can create and edit reinforcement from ui.

In current implementation, function editSingleTieMultipleRebars deletes and recreate previously created secondary rebars.
Todo: delete and recreate secondary rebars only when rebar type or number#diameter changes. Otherwise edit already created rebars.

In below image,
Main rebars: present at corner of ties
Secondary rebars: all other rebars except main rebars (shown colored in image)
SingleTieMultipleRebars.png
SingleTieMultipleRebars.png (201.51 KiB) Viewed 1817 times
Thanks,
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Automate Reinforcement GSoC proposal

Post by yorik »

Looks very nice! Well done so far!
User avatar
Suraj Dadral
Posts: 307
Joined: Fri Sep 07, 2018 5:32 pm
Contact:

Re: Automate Reinforcement GSoC proposal

Post by Suraj Dadral »

yorik wrote: Tue Jun 25, 2019 9:35 pm Looks very nice! Well done so far!
Thanks @yorik

I have created documentation page for current implementation and can be found here:
https://www.freecadweb.org/wiki/Arch_Re ... nforcement

Please review and give your suggestions.

Now, I am going to include examples for scripting.

Thanks,
User avatar
Suraj Dadral
Posts: 307
Joined: Fri Sep 07, 2018 5:32 pm
Contact:

Re: Automate Reinforcement GSoC proposal

Post by Suraj Dadral »

Suraj Dadral wrote: Wed Jun 26, 2019 9:56 am
I have created documentation page for current implementation and can be found here:
https://www.freecadweb.org/wiki/Arch_Re ... nforcement

Please review and give your suggestions.

Now, I am going to include examples for scripting.
Hello everyone,
I have created examples on wiki page.
Now, I will work on code improvement as I discussed in post: https://forum.freecadweb.org/viewtopic. ... 40#p316484

Thanks,
User avatar
Suraj Dadral
Posts: 307
Joined: Fri Sep 07, 2018 5:32 pm
Contact:

Re: Automate Reinforcement GSoC proposal

Post by Suraj Dadral »

Hello everyone,
Today me and @amrit3701 have video conference and we discussed about work done till now.
@amrit3701 suggested following things:
  1. Use black syntax for code section in documentation present here: https://www.freecadweb.org/wiki/Arch_Re ... nforcement
  2. Wrap long python strings as suggested here: https://docs.python.org/3/reference/lex ... catenation, https://stackoverflow.com/questions/106 ... ine-string
  3. Center align Recangular Column and Circular Column radio button in ColumnReinforcement ui.
  4. We discussed about next task to do, which will be to implement column reinforcement with two ties as in image: https://www.freecadweb.org/wiki/File:Co ... types1.png
Thanks,
User avatar
Suraj Dadral
Posts: 307
Joined: Fri Sep 07, 2018 5:32 pm
Contact:

Re: Automate Reinforcement GSoC proposal

Post by Suraj Dadral »

yorik wrote: Sun May 12, 2019 12:48 am IMHO the 4@20+3@16 notation is useful for you (easy to parse and store in a string), but not very easy to the user. I would change that edit field by a button, that opens a dialog that is specially made to create and edit such a string. Maybe a kind of grid where the use wouldn't have to care about entering special chars correctly...
I have created dialog box for editing Number#Diameter string. User can edit Number#Diameter string either directly in ui input field or he/she can click on "Edit Number and Diameter" button to open dialog box for editing that string.

New dialog box preview:
NewDialogBox.png
NewDialogBox.png (26.08 KiB) Viewed 1565 times

Please review and give your suggestions.

Thanks,
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Automate Reinforcement GSoC proposal

Post by yorik »

Great! Perfect solution
User avatar
amrit3701
Posts: 343
Joined: Mon Jun 13, 2016 5:37 pm

Re: Automate Reinforcement GSoC proposal

Post by amrit3701 »

Suraj Dadral wrote: Wed Jun 26, 2019 9:56 am I have created documentation page for current implementation and can be found here:
https://www.freecadweb.org/wiki/Arch_Re ... nforcement

Please review and give your suggestions.
Looks good. :D
Amritpal Singh
Github, Like my work, sponsor me!
Post Reply