[PR] [0.18] [0.19_pre] Arch Stair - More Geometry Control? Profile Generator

A forum dedicated to the Draft, Arch and BIM workbenches development.
paullee
Posts: 2319
Joined: Wed May 04, 2016 3:58 pm

Re: [PR] [0.18] [0.19_pre] Arch Stair - More Geometry Control? Profile Generator

Postby paullee » Fri Jul 12, 2019 1:41 pm

dimitar wrote:
Fri Jul 12, 2019 12:28 am
Have you looked at the wall creation in Blender with the architools addon? It's not 100% intuitive, but it does a pretty decent job.

Image
Thanks again for the images.

I am not an experienced user of blender, just tested playing around importing Obj, texture mapping, simlle rendering .

Any video tutorial you remember ... or any feature / workflow you think worth implementing... ?
User avatar
dimitar
Posts: 153
Joined: Thu Jun 13, 2019 6:10 am
Location: UK
Contact:

Re: [PR] [0.18] [0.19_pre] Arch Stair - More Geometry Control? Profile Generator

Postby dimitar » Sun Jul 14, 2019 11:42 pm

paullee wrote:
Fri Jul 12, 2019 1:41 pm

I am not an experienced user of blender, just tested playing around importing Obj, texture mapping, simlle rendering .

Any video tutorial you remember ... or any feature / workflow you think worth implementing... ?
Not sure about implementing, but i always find it interesting to research other people's take on the same challenges. With Architectural objects, there seem to be plenty.

In case you would like to try the archipack stair generator, I've recorded a video that shows how to use it:

phpBB [video]


a few more useful references:

Archicad is meant to have a very good stair design tool, much better than Revit's. I haven't used it yet, but here is the documentation - https://helpcenter.graphisoft.com/user-guide/64747/

phpBB [video]


phpBB [video]


Catia has pretty good tools in all areas which I will be referencing constantly, but i am struggling to find videos of their stair generator.

Hope this is useful
paullee
Posts: 2319
Joined: Wed May 04, 2016 3:58 pm

Re: [PR] [0.18] [0.19_pre] Arch Stair - More Geometry Control? Profile Generator

Postby paullee » Thu Jul 18, 2019 5:08 pm

Thanks, the ability to 'draw' a staircase, like ArchWall be drawn is good :)

Unfortunately I do not have enough knowledge to implement this - anybody? :lol:

It is inspiring what can/should be done though
carlopav
Posts: 1206
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: [PR] [0.18] [0.19_pre] Arch Stair - More Geometry Control? Profile Generator

Postby carlopav » Tue Apr 28, 2020 6:14 am

paullee wrote: ping
Nice, so this is a further level: let me repeat to check if I understand you.
The interesting part in wall extrusion is the base profile generation, so this is what should be extracted first (eventually adding an extrusion option ?).
I'm not for making over complicated object, I think it's better to split them into several different objects that do just one specific task.
Instead we can make more complicated gui tools that group the possibility to generate different objects.
So here for example we can have one Gui Profile tool generato that can produce:
- a thin element profile object;
- a stair profile object;
- a window profile object;
- a steel profile (IPE HE UNP);
- a pipe profile;

what do you think?
follow my experiments on BIM modelling for architecture design
paullee
Posts: 2319
Joined: Wed May 04, 2016 3:58 pm

Re: [PR] [0.18] [0.19_pre] Arch Stair - More Geometry Control? Profile Generator

Postby paullee » Tue Apr 28, 2020 1:40 pm

There are a few discussion so may be I just outline my own thinking.

Currently, Arch Object give you the solid geometry with some parameters which make up the BIM objects, Wall, Window, Stairs.

This is somehow hard for customisation of the form or the code will be more and more complicated (@Yorik explain this problem found in Revit). Stairs apparently is one which is complex in forms, so how do you model a stairs not Stairs, a curve auditorium etc.?

So, e.g. in this post [EDIT] https://forum.freecadweb.org/viewtopic. ... 40#p317816 , an option is added so Stair just return the Face or even Profile of the Steps, then one could Revolve to get a shape required. Even better if a Step Profile (e.g. in Sketch) is return, one can based on this step profile add details, then extrude into solid.

Instead of make a Gui tool just to generate a Stair Profile, Face etc, I am adding option to let Stairs to return a Profile, Faces, Solid object etc. This complicate the Stairs object in fact. I am not sure if a separate tool sharing similar code but just return the outline / profile is better solution - so a simple Stairs Profile / Geometry Object, then subClassing it to make the Arch Stair objects? Difficult for me to express due to my very limited knowledge in programming and python :)
Last edited by paullee on Sat May 23, 2020 5:47 pm, edited 1 time in total.
carlopav
Posts: 1206
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: [PR] [0.18] [0.19_pre] Arch Stair - More Geometry Control? Profile Generator

Postby carlopav » Tue Apr 28, 2020 1:47 pm

I'll keep thinking about it... perhaps what is simpler is also right! :)
follow my experiments on BIM modelling for architecture design
paullee
Posts: 2319
Joined: Wed May 04, 2016 3:58 pm

Re: [PR] [0.18] [0.19_pre] Arch Stair - More Geometry Control? Profile Generator

Postby paullee » Sat May 23, 2020 6:07 pm

paullee wrote:
Tue Apr 28, 2020 1:40 pm
There are a few discussion so may be I just outline my own thinking.

Currently, Arch Object give you the solid geometry with some parameters which make up the BIM objects, Wall, Window, Stairs.

This is somehow hard for customisation of the form or the code will be more and more complicated (@Yorik explain this problem found in Revit). Stairs apparently is one which is complex in forms, so how do you model a stairs not Stairs, a curve auditorium etc.?

So, e.g. in this post [EDIT] https://forum.freecadweb.org/viewtopic. ... 40#p317816 , an option is added so Stair just return the Face or even Profile of the Steps, then one could Revolve to get a shape required. Even better if a Step Profile (e.g. in Sketch) is return, one can based on this step profile add details, then extrude into solid.

Instead of make a Gui tool just to generate a Stair Profile, Face etc, I am adding option to let Stairs to return a Profile, Faces, Solid object etc. This complicate the Stairs object in fact. I am not sure if a separate tool sharing similar code but just return the outline / profile is better solution - so a simple Stairs Profile / Geometry Object, then subClassing it to make the Arch Stair objects? Difficult for me to express due to my very limited knowledge in programming and python :)
Just realize, after busy for almost a year, the test codes have not been further discussed here https://forum.freecadweb.org/viewtopic. ... 40#p317816[/b]

The crux of codes are as below, see anyone would like to comment the approach.

Code: Select all


    def setProperties(self,obj):
    ...
        if not "StructuresOutput" in pl:
            obj.addProperty("App::PropertyEnumeration","StructuresOutput","Structure","Profile, Face, Solid (Bim Object) or None to be created for Structures")
            obj.StructuresOutput = ["None","Profile","Face","Solid"]
        if not "StepsOutput" in pl:
            obj.addProperty("App::PropertyEnumeration","StepsOutput","Structure","Profile, Face, Solid (Bim Object) or None to be created for Steps")
            obj.StepsOutput = ["None","Profile","Face","Solid"]

Code: Select all

    def execute(self,obj):

        "constructs the shape of the stairs"

        ...

        self.steps = []
        self.risers = []
        self.pseudosteps = []
        self.structures = []

        ## TODO - 2019.5.20
        self.structuresProfiles = []
        self.stepsProfiles = []
        self.risersProfiles = []
Screenshot from 2019-06-29 23-29-23.png
Screenshot from 2019-06-29 23-29-23.png (271.94 KiB) Viewed 49 times
Screenshot from 2019-06-29 23-31-24.png
Screenshot from 2019-06-29 23-31-24.png (290.15 KiB) Viewed 49 times
Attachments
ArchStairs_WIP_ clean.py
(75.91 KiB) Downloaded 1 time