Reinforcement WB
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Reinforcement WB
Hi guys I've been working with the rebar addon and I'm trying to improve the way the objects are created. I created a tool for Wire Reinforcement Columns.
As you can see you only need to select the type of reinforcement you want,the faces for rebar and stirrup ( It also supports triangular stirrups) and edit, if you want to, the spacing, rebar diameter, rebar length, stirrup diameter,etc. So in 3 clicks you will have a reinforcement (with overlap) in your structure instead of having to create each rebar and stirrup.
I just need a little help, The Arch.makeRebar command doesn't work when the structure have an angle, maybe an error with the "Map a sketch to a face" command??
As you can see you only need to select the type of reinforcement you want,the faces for rebar and stirrup ( It also supports triangular stirrups) and edit, if you want to, the spacing, rebar diameter, rebar length, stirrup diameter,etc. So in 3 clicks you will have a reinforcement (with overlap) in your structure instead of having to create each rebar and stirrup.
I just need a little help, The Arch.makeRebar command doesn't work when the structure have an angle, maybe an error with the "Map a sketch to a face" command??
- Attachments
-
- Captura de pantalla de 2018-08-30 15-08-16.png (260.91 KiB) Viewed 4571 times
-
- Captura de pantalla de 2018-08-30 15-08-42.png (266.07 KiB) Viewed 4571 times
-
- Captura de pantalla de 2018-08-30 15-08-53.png (242.94 KiB) Viewed 4571 times
-
- Captura de pantalla de 2018-08-30 15-09-46.png (252.88 KiB) Viewed 4571 times
-
- Captura de pantalla de 2018-08-30 15-09-53.png (291.16 KiB) Viewed 4571 times
Re: Reinforcement WB
Hi @alex_V,alex_V wrote: ↑Thu Aug 30, 2018 8:33 pm Hi guys I've been working with the rebar addon and I'm trying to improve the way the objects are created. I created a tool for Wire Reinforcement Columns.
As you can see you only need to select the type of reinforcement you want,the faces for rebar and stirrup ( It also supports triangular stirrups) and edit, if you want to, the spacing, rebar diameter, rebar length, stirrup diameter,etc. So in 3 clicks you will have a reinforcement (with overlap) in your structure instead of having to create each rebar and stirrup.
I just need a little help, The Arch.makeRebar command doesn't work when the structure have an angle, maybe an error with the "Map a sketch to a face" command??
I also saw the same error (see below attached image). On debugging, I found that the error is in execute function of ArchRebar._Rebar class. I think we are not passing a correct value of rot (https://github.com/FreeCAD/FreeCAD/blob ... ar.py#L378) to CalculatePlacement function.
@Yorik what you think?
I created below rebar by selected highlighted face.
Thanks,
Re: Reinforcement WB
Thanks @amrit3701,
Sometimes the sketch is in the right position but the solid is not. I think you are right about the CalculatePlacement function.
Sometimes the sketch is in the right position but the solid is not. I think you are right about the CalculatePlacement function.
- Attachments
-
- Captura de pantalla de 2018-09-03 09-02-20.png (284.84 KiB) Viewed 4335 times
-
- Captura de pantalla de 2018-09-03 09-02-29.png (324.12 KiB) Viewed 4335 times
Re: Reinforcement WB
Probably.. it would require some debugging. But it seems to me the problem might be at https://github.com/FreeCAD/FreeCAD/blob ... ar.py#L371 it takes the rotation of the host Arch Structure, but the sketch itself might have a rotation too, maybe they need to be added.amrit3701 wrote: ↑Sun Sep 02, 2018 3:10 pm I also saw the same error (see below attached image). On debugging, I found that the error is in execute function of ArchRebar._Rebar class. I think we are not passing a correct value of rot (https://github.com/FreeCAD/FreeCAD/blob ... ar.py#L378) to CalculatePlacement function.
@Yorik what you think?
Re: Reinforcement WB
alex_V wrote:
Thanks, Yorik for the hint. Here is the PR: https://github.com/FreeCAD/FreeCAD/pull/1647yorik wrote: ↑Mon Sep 03, 2018 2:36 pm Probably.. it would require some debugging. But it seems to me the problem might be at https://github.com/FreeCAD/FreeCAD/blob ... ar.py#L371 it takes the rotation of the host Arch Structure, but the sketch itself might have a rotation too, maybe they need to be added.
Re: Reinforcement WB
Great job @amrit3701. Now the sketch and the rebar (as solid) have the same angle. The only problem that I see now is the way the points of the rebar (sketch) are created. They are created far from the structure.
Thanks a lot for taking your time in this fix!!
- Attachments
-
- Captura de pantalla de 2018-09-04 13-02-55.png (367.88 KiB) Viewed 4214 times
-
- Captura de pantalla de 2018-09-04 13-03-01.png (388.29 KiB) Viewed 4214 times
-
- Captura de pantalla de 2018-09-04 13-03-14.png (328.61 KiB) Viewed 4214 times
- ebrahim raeyat
- Posts: 619
- Joined: Sun Sep 09, 2018 7:00 pm
- Location: Iran
- Contact:
Re: Reinforcement WB
Hello. I am civil engineer and develop some minor software in my work. here is my blog:
http://ebrahimraeyat.blog.ir/post/civilTools_final
recently I decide to start a framework project for civil engineer include some software:
1- first a pre/post processore graphical tools for opensees like this: http://gidopensees.rclab.civil.auth.gr/
it is opensource written in visual basic and has GPL3 licence. It is very perfect.
opensees navigatore:
https://www.nextfem.it
2- a desing engine for concrete and steel structure like etabs: https://www.csiamerica.com/products/etabs
3- a software that draw plane of concrete and steel sturcture like these software in my country (IRAN):
steel: http://www.rayansazeh.com/
concrete: http://www.saze90.com/about/drawing/beam, http://www.mohaseb2000.ir/,
http://www.farasaeg.ir/indexEN.htm
I want to write these software with python in freecad, I also use https://github.com/zhuminjie/OpenSeesPyDoc
I decide to use BIM for workflow. It is big idea and i want to start from number 3 and first for concrete structure.
please help me for this task
http://ebrahimraeyat.blog.ir/post/civilTools_final
recently I decide to start a framework project for civil engineer include some software:
1- first a pre/post processore graphical tools for opensees like this: http://gidopensees.rclab.civil.auth.gr/
it is opensource written in visual basic and has GPL3 licence. It is very perfect.
opensees navigatore:
https://www.nextfem.it
2- a desing engine for concrete and steel structure like etabs: https://www.csiamerica.com/products/etabs
3- a software that draw plane of concrete and steel sturcture like these software in my country (IRAN):
steel: http://www.rayansazeh.com/
concrete: http://www.saze90.com/about/drawing/beam, http://www.mohaseb2000.ir/,
http://www.farasaeg.ir/indexEN.htm
I want to write these software with python in freecad, I also use https://github.com/zhuminjie/OpenSeesPyDoc
I decide to use BIM for workflow. It is big idea and i want to start from number 3 and first for concrete structure.
please help me for this task
- Joel_graff
- Veteran
- Posts: 1949
- Joined: Fri Apr 28, 2017 4:23 pm
- Contact:
Re: Reinforcement WB
I think you're trying to solve a problem that was bugging me, too. I managed to get what I wanted to work.. sort of. The issue you cite with the rebar outside the structure, I managed to solve, but I had to write my own rebar generation code to do it as it differed pretty significantly from amrit's approach.
https://forum.freecadweb.org/viewtopic. ... 0&start=10
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
- eccioloste
- Posts: 37
- Joined: Tue Sep 26, 2017 2:59 pm
- Contact:
Re: Reinforcement WB
Good morning everyone.
I am writing here because I am having some small issues with Reinforcement WB
09:10:03 Running the Python command 'Reinforcement_BeamRebars' failed:
Traceback (most recent call last):
File "C:\Users\Francesco\AppData\Roaming\FreeCAD\Mod\Reinforcement\RebarTools.py", line 252, in Activated
from BeamReinforcement import MainBeamReinforcement
File "C:\Users\Francesco\AppData\Roaming\FreeCAD\Mod\Reinforcement\BeamReinforcement\MainBeamReinforcement.py", line 55, in <module>
from BeamReinforcement import TwoLeggedBeam
File "C:\Users\Francesco\AppData\Roaming\FreeCAD\Mod\Reinforcement\BeamReinforcement\TwoLeggedBeam.py", line 34, in <module>
from StraightRebar import makeStraightRebar, editStraightRebar
File "C:\Users\Francesco\AppData\Roaming\FreeCAD\Mod\Reinforcement\StraightRebar.py", line 29, in <module>
from typing import Literal, Tuple, List
cannot import name 'Literal'
this is the error I receive when recalling anything else than the stirrup option.
I am using freecad 0.19 on windows 10
Thank you
Regards
Fs
I am writing here because I am having some small issues with Reinforcement WB
09:10:03 Running the Python command 'Reinforcement_BeamRebars' failed:
Traceback (most recent call last):
File "C:\Users\Francesco\AppData\Roaming\FreeCAD\Mod\Reinforcement\RebarTools.py", line 252, in Activated
from BeamReinforcement import MainBeamReinforcement
File "C:\Users\Francesco\AppData\Roaming\FreeCAD\Mod\Reinforcement\BeamReinforcement\MainBeamReinforcement.py", line 55, in <module>
from BeamReinforcement import TwoLeggedBeam
File "C:\Users\Francesco\AppData\Roaming\FreeCAD\Mod\Reinforcement\BeamReinforcement\TwoLeggedBeam.py", line 34, in <module>
from StraightRebar import makeStraightRebar, editStraightRebar
File "C:\Users\Francesco\AppData\Roaming\FreeCAD\Mod\Reinforcement\StraightRebar.py", line 29, in <module>
from typing import Literal, Tuple, List
cannot import name 'Literal'
this is the error I receive when recalling anything else than the stirrup option.
I am using freecad 0.19 on windows 10
Thank you
Regards
Fs
Re: Reinforcement WB
How did you install reinforcement WB ?