How can I move cabinet next to each other depending on the width?

When I originally wrote the MoveD cluster, the polyhedra were always centered. In other cases like this one, I added code to center the geometry so it would work. But I think it makes more sense to modify the cluster, so I have a new one: MoveD0 expects geometry to be aligned as you have these cabinets. No more need for that white group.


CABINETS_2024Jul29c.gh (3.6 MB)

@Joseph_Oster

Thank you, I think this is good. I will try to continue developing the script. If I have more challenges, I will post it.

:handshake:

Everyone,

I have decided to unsolve this because it does not do what I was looking for, and I need to finish my homework.

For now, the solution creates a gap between boxes but does not insert a box following the first one; and continuously does this regardless of the dim of the previous box.

Basically, the script should read the previous dim box and move the next one based on that dimension and so on.

The script is ready for more boxes, you just need to add them

It does. But is not what I am looking for.

I made this one that does what I am looking for.

PNCMOVEBOXESBYWIDHT.gh (35.1 KB)

I think this resolves the question in the post.

Let me know what you think.

Everyone,

At the beginning of this post, I set some goals:

So far, we have accomplished three of them.

  • Created a wall - curve from rhino
  • Place boxes left to right
  • Add dimensions

Thank you, everyone, for your cooperation and help.

Here is the updated GH that includes Dimensions.

I’m here to help everyone continue developing this script.

PNCMOVEBOXESBYWIDHT.gh (41.0 KB)

:call_me_hand:t4:

Nice. I just tested your definition. Looks like you forgot to internalize the curve.

What units are you using? In my screen it is shows 30.43mm as length of one of your boxes.

1 Like

Cumberland.

Thank you for the feedback. :handshake:t4:

The curve is always reference from Rhino - so far on X direction left to right.

Is on inches.

1 Like

You are building your cabinets using Grasshopper? If so, maybe you can share a definition. I always like to learn new things. Thank you.

@Cumberland

I am not building cabinets in Grasshopper.

It will be great to start a new post to develop a GH that does that and help other to created wealth using GH.

Be cautious of what you share - not everyone is here for the help.

If you happen to have Cabinets already designed in Rhino, you can add them to a folder and reference them to GH by using the folder location (link). Not sure if there is post about that here.

There is a lot of info online.

1 Like

I am working mostly on very bespoke furniture and I don’t do the design myself buy I do receive 3D models from various designers we are working with. It’s just a thought of mine to create some cabinets using Grasshopper. I’ve seen some GH definitions on food4rhino but never had time to try them.

The def in food4rhino are fine but mostly does not resolve any problem - because they are not well developed.

A good GH is scalable, easy to share, read and collaborate - the ones in food4rhino does not have any of the adjectives before mentioned.