Grasshopper : Setting board thickness for staircase generator

Hello everyone,

I am currently working on staircase generator cluster, and I’ve encountered an issue that I’d like to ask about.

Initially, I set the thickness of the stair board to 18mm as the default and proceeded with the work. However, I want to make it adjustable so that the thickness can be set freely. The problem is that when I adjust the thickness, the top stair does not change in line with the other models. It seems to be connected with other components, but I cannot identify the issue.




nastaveni_schodu_05.gh (159.8 KB)



Good luck.

By the way, when I click on your GH file, I get a file called 8747f06c913747837cf1f2e6b8e7ccac56a6e356.gh instead of nastaveni_schodu_05.gh

Is this a new forum bug :question: I haven’t been active recently but saw this same problem in another thread a couple days ago.

Hi Joseph -

Yes. We’ve asked the Discourse people to look into this.
-wim

1 Like

From what I can tell, old threads still work as expected. New threads (this year?) are broken.

That’s correct, yes.
-wim

Thank you Joseph for your answer.
I reset the components and deleted plug in, but unfortunetly the issue is same… :frowning:

nastaveni_schodu_06.gh (159.6 KB)

Congratulations. At a glance though, this code is too complex for me right now, and I can’t easily read the Czech words. Sorry.

1 Like

the first thing I notice when opening your definition is the presence of many world-vectors like the Y in this case, that would push the extrusion of that surface on itself, instead of giving it thickness:

I don’t know if you want this definition to work just in one particular orientation or if you want it to be working on base geometries oriented anywhere on the 3D space: if this last is your case, then you can’t use XYZ vectors as references because those will be fixed, while your geometry is not

for instance, if you want to give thickness to that very face (that comes from a Closed Brep) you could just extrude it along its Normal
that would detach the direction of the extrusion vector from the XYZ world system:

another thing that I notice, the general use of Flatten and multiple wires flattened in the same input to manage problems :slight_smile: that will just generate more problems, probably make the definition a bit slower, and will for sure end up in a situation where it’s difficult to understand what is what

I would very much advocate for using Merge components instead of using shift+drag multiple wires in the same input, in such a way you can always see and easily follow the flow of your data

not only that, but doing so would also allow you for having a separate branch -for instance- for each step of your stair, in such a way you can see when something is working according to your idea by just looking at the data trees

2 Likes

Thank you for your advice!

Luckily, I was able to solve the problems I had. However, it definitely needs to be cleaned up as suggested.

To answer your question, I actually didn’t consider making it work anywhere in 3D—but that would be really useful! I made this to easily generate stairs in any size and allow for selecting the board thickness.

Anyway, I appreciate your guidance and will keep it in mind for the future.

Once again, thank you all for your replies!