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

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
paullee
Veteran
Posts: 5118
Joined: Wed May 04, 2016 3:58 pm

Re: [PR] Arch Stair - More Geometry Control? Opening at Floor?

Post by paullee »

Thanks for the diagram! :) Would see how this Riser Thickness could be implemented when there is a gap - currently fighting against the curvilinear railing...

That is Autodesk's software right? Haven't really used software other than AutoCAD.
User avatar
yorik
Founder
Posts: 13659
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: [PR] Arch Stair - More Geometry Control? Opening at Floor?

Post by yorik »

To apply different materials to differentparts of the objects, that's exactly the purpose of the multi material tool. In a multi-material, each material layer can be given a name. I would use that. See if your object has a multi-material attached, and scan the multimaterial for appropriate layer names (we can add "presets" to the MultiMaterial layer name field like I did for windows, just add a list somewhere in ArchStairs.py and we grab it)

Then, basically it's just a matter of setting the DiffuseColor property of your object. The DiffuseColor is a list of colors, of the same length and order of the faces of the object. DiffuseColor[0] goes to Shape.Faces[0], and so on. If you create things solid by solid, then it's relatively easy, create a list of face colors at the same time, and populate it together.
Renato Rebelo
Posts: 255
Joined: Mon May 19, 2014 1:14 pm
Location: Vouzela - Portugal

Re: [PR] Arch Stair - More Geometry Control? Opening at Floor?

Post by Renato Rebelo »

paullee wrote: Wed Feb 06, 2019 12:27 am That is Autodesk's software right? Haven't really used software other than AutoCAD.
I think yes but I do not know which one, it was an image that I googled ... :D
my native language is not English, please excuse me any incorrectness, I apologize for any inconvenience caused, thank you
paullee
Veteran
Posts: 5118
Joined: Wed May 04, 2016 3:58 pm

Re: [PR] [0.19_pre] Arch Stair - More Geometry Control? Opening at Floor?

Post by paullee »

paullee wrote: Tue Feb 05, 2019 7:03 am
Hi, I created 3d wires with curvilinear LineSegment for railing but found many problems :(

One being FC crash occasionally - e.g. select the RailingWire in attached file and and apply ArchPipe and it crash.
With latest code, no FC crash.

Curve railing with below form is OK, though problematic on other cases (https://forum.freecadweb.org/viewtopic. ... 81#p285607):-

Screenshot from 2019-02-09 06-58-54.png
Screenshot from 2019-02-09 06-58-54.png (258.67 KiB) Viewed 2449 times
Attachments
Test_ ArchStairs_ code revision test_ 12_ Simple Half-Turn Stairs with curve landing _ 2.fcstd
(175.4 KiB) Downloaded 65 times
Last edited by paullee on Tue Feb 12, 2019 4:54 pm, edited 1 time in total.
paullee
Veteran
Posts: 5118
Joined: Wed May 04, 2016 3:58 pm

Re: [PR] [0.19_pre] Arch Stair - More Geometry Control? Opening at Floor?

Post by paullee »

Cross-link to makePipeShell issue:-

https://forum.freecadweb.org/viewtopic. ... 83#p285883
paullee
Veteran
Posts: 5118
Joined: Wed May 04, 2016 3:58 pm

Re: [PR] Arch Stair - More Geometry Control? Riser Thickness

Post by paullee »

issue #0003816
Renato Rebelo wrote: Tue Feb 05, 2019 10:42 pm
yes I mean the vertical part, as in the image
escadas.png

thank you
Hi, the Riser Thickness feature is added below, see anybody would test before PR :)
Screenshot from 2019-03-31 05-56-36.png
Screenshot from 2019-03-31 05-56-36.png (169.95 KiB) Viewed 2297 times
Screenshot from 2019-03-31 05-58-16.png
Screenshot from 2019-03-31 05-58-16.png (203.62 KiB) Viewed 2297 times
Screenshot from 2019-03-31 05-58-29.png
Screenshot from 2019-03-31 05-58-29.png (207.32 KiB) Viewed 2297 times
Screenshot from 2019-03-31 05-58-40.png
Screenshot from 2019-03-31 05-58-40.png (203.78 KiB) Viewed 2297 times
Attachments
ArchStairs.py
(69.85 KiB) Downloaded 95 times
carlopav
Veteran
Posts: 2062
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: [PR] [0.18] [0.19_pre] Arch Stair - More Geometry Control? Riser Thickness

Post by carlopav »

Works good! Do you have any plan to bound the placement and total height of the stair to two building levels?
follow my experiments on BIM modelling for architecture design
paullee
Veteran
Posts: 5118
Joined: Wed May 04, 2016 3:58 pm

Re: [PR] [0.18] [0.19_pre] Arch Stair - More Geometry Control? Riser Thickness

Post by paullee »

carlopav wrote: Sun Mar 31, 2019 11:37 am Works good! Do you have any plan to bound the placement and total height of the stair to two building levels?
Thanks for testing.

Yes, it would be special that this object would be\ dependent on 2 floors / parts ...

Then, thought about creating opening like window... Now the floors maybe dependent on Stairs - to prevent circular dependence, maybe adopt window;s host concept...

Or should the height of Stairs drive the Floor Height...?

Your idea?
carlopav
Veteran
Posts: 2062
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: [PR] [0.18] [0.19_pre] Arch Stair - More Geometry Control? Riser Thickness

Post by carlopav »

paullee wrote: Sun Mar 31, 2019 10:30 pm Yes, it would be special that this object would be\ d
Then, thought about creating opening like window... Now the floors maybe dependent on Stairs - to prevent circular dependence, maybe adopt window;s host concept..
I think it would be just brilliant to have the possibility to make the placement height dependant from base floor (using the z placement in a relative way), and height calculated as difference between upper floor and lower floor levels. Instead I don't think that the stair should cut something from the upper floor slab... (at least that's the Revit way: two parameters with drop down list showing list of floors) What do u think?
follow my experiments on BIM modelling for architecture design
paullee
Veteran
Posts: 5118
Joined: Wed May 04, 2016 3:58 pm

Re: [PR] [0.18] [0.19_pre] Arch Stair - More Geometry Control? Riser Thickness

Post by paullee »

carlopav wrote: Mon Apr 01, 2019 5:55 am
paullee wrote: Sun Mar 31, 2019 10:30 pm Yes, it would be special that this object would be\ d
Then, thought about creating opening like window... Now the floors maybe dependent on Stairs - to prevent circular dependence, maybe adopt window;s host concept..
I think it would be just brilliant to have the possibility to make the placement height dependant from base floor (using the z placement in a relative way), and height calculated as difference between upper floor and lower floor levels. Instead I don't think that the stair should cut something from the upper floor slab... (at least that's the Revit way: two parameters with drop down list showing list of floors) What do u think?
I do not know Revit :) Any reason not letting Stairs to help create opening on floors?

BTW, do you want to make a Mantis ticket on the suggested features?

Thanks.
Post Reply