rebar2

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

rebar2

Post by bernd »

A few times I stated the FreeCAD rebar base code should be improved. IMHO the rebar class should be split in two classes:

- the rebar shape marked by a mark number
- the disribution of this rebar shape in the model
- may be more than one distribution
- means in tree view there will be two objects too. The distributions are childs of the marked rebar shape
- for the user it should be possible to create those two separate, thus separate class
- There are use cases where this is not needed, like most existing FreeCAD rebar tools and the rebar add-ond from GSoC. They should automaticly create these both objects with one tool instead of one object ATM. The idea is to let this happen inside the current module. Means the existing add ons does not need to be changed. But this needs to be disscussed.
- see readme in the repository
- ATM it is a standard FreeCAD AddOn. Thus it is easy to give it a try.

- https://github.com/berndhahnebach/rebar2

- since I am lazy I wrote a importer which creates the above objects for reinforcement ifc exported from Allplan. :mrgreen:
- four ifc attached in the code
- Furthermore code to copy to create the objects by Python and code to import the example files:
https://github.com/berndhahnebach/rebar ... t_rebar.py

Bernd

EDIT:
Still two objects but they where renamed here https://forum.freecadweb.org/viewtopic. ... 10#p384310
- base rebar is the base reinforcement bar (rebar=reinforcement bar) object.
- reinforcement will be made from a base rebar and places the base rebars to make some path reinforcement.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: rebar2

Post by bernd »

Screenshot_20200402_225105.png
Screenshot_20200402_225105.png (89.14 KiB) Viewed 2981 times

Screenshot_20200402_225347.png
Screenshot_20200402_225347.png (333.75 KiB) Viewed 2981 times
User avatar
Suraj Dadral
Posts: 307
Joined: Fri Sep 07, 2018 5:32 pm
Contact:

Re: rebar2

Post by Suraj Dadral »

bernd wrote: Thu Apr 02, 2020 9:02 pm A few times I stated the FreeCAD rebar base code should be improved. IMHO the rebar class should be split in two classes:

- the rebar shape marked by a mark number
- the disribution of this rebar shape in the model
- may be more than one distribution
- means in tree view there will be two objects too. The distributions are childs of the marked rebar shape
- for the user it should be possible to create those two separate, thus separate class
- There are use cases where this is not needed, like most existing FreeCAD rebar tools and the rebar add-ond from GSoC. They should automaticly create these both objects with one tool instead of one object ATM. The idea is to let this happen inside the current module. Means the existing add ons does not need to be changed. But this needs to be disscussed.
- see readme in the repository
- ATM it is a standard FreeCAD AddOn. Thus it is easy to give it a try.

- https://github.com/berndhahnebach/rebar2

- since I am lazy I wrote a importer which creates the above objects for reinforcement ifc exported from Allplan. :mrgreen:
- four ifc attached in the code
- Furthermore code to copy to create the objects by Python and code to import the example files:
https://github.com/berndhahnebach/rebar ... t_rebar.py

Bernd
Great work @bernd

I will start its integration into Rebar Addon after modifying BOM function as stated here. And getting confirmation from you.

Thanks,
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: rebar2

Post by bernd »

My idea is not to integrate this into Rebar Addon but to integrate this into FreeCAD rebar implementation at all !!!

Would be coold if you could give it a try to get an idea what I mean in the regard of the two objects, one for rebar shape and one for the rebar distribution.

bernd
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: rebar2

Post by bernd »

fixed import of the cran foundation rebar ifc into rebar2 ... All ifc reinforcement files exported with Allplan should work with rebar2 ifc reinforcement import.


Screenshot_20200403_110743.png
Screenshot_20200403_110743.png (316.77 KiB) Viewed 2922 times
carlopav
Veteran
Posts: 2062
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: rebar2

Post by carlopav »

That look awesome!
follow my experiments on BIM modelling for architecture design
User avatar
amrit3701
Posts: 343
Joined: Mon Jun 13, 2016 5:37 pm

Re: rebar2

Post by amrit3701 »

bernd wrote: Thu Apr 02, 2020 9:03 pm Screenshot_20200402_225105.png



Screenshot_20200402_225347.png
Amazing!
Amritpal Singh
Github, Like my work, sponsor me!
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: rebar2

Post by bernd »

It now really works the way I would like to have it working. One rebar base shape could have multiple distributions. See TreeView in the screen! :D

Screenshot_20200403_222211.png
Screenshot_20200403_222211.png (355.95 KiB) Viewed 2830 times
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: rebar2

Post by bernd »

improved examples. These examples are included ... They use lattice2 placements to create the rebar distribution. See TreeView.

Screenshot_20200404_221505.png
Screenshot_20200404_221505.png (198.34 KiB) Viewed 2769 times
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: rebar2

Post by bernd »

Suraj Dadral wrote: Fri Apr 03, 2020 8:52 am I will start its integration into Rebar Addon after modifying BOM function as stated
As a start it would be cool if your BOM would be able to use the rebar objects created with rebar2 as well. Than it would not matter how the rebar is created, either with FreeCAD rebar tools and FreeCAD rebar AddOn or with rebar2 tools. BTW you do not neet to use the rebar base shape object. You need to use the Rebar Distribution object.

I will continue to think about integration of rebar2 in FreeCAD Arch and FreeCAD Rebar module.
Post Reply