I work with cabinet making and I am developing a system to make my work faster as I have to draw each and every single box by hand.
I´ve managed to make a script to create the box to my specification and a shelving system that will not render any useless geometries.
After I bake all the important geometries, I also bake 2 extra points to align the next box.
The thing I want to know is: Is there any way to create a button on the remote control that will allow me to select the next starting point?
If you look at the attached file “Captura.jpg” you will see the remote control panel. When I click the “Criar Caixa”, it will bake the geometries
In the file “captura 02.jpg” you can see the initial point, which generally is 0,0,0 to start and reference all box geometries. It will also generate 2 extra points so I can get to the next box in the right place, always going from left to right.
Also attached is the Grasshopper definition if anyone want to look and try to optimize it, all tips will be welcome!
Unless I am missing something, I cant select the point with a slider after the geometries are already baked…
I wanted to do something like a button “select next cabinet starting point” without having to right click the first reference point withing grasshopper and set it by hand.
Maybe with ghscript or the Human UI add on that would be possible.
My idea for your problem would be to bake a single point with a user id , read back this point from rhino and use it to build cabinet, each bake of a cabinet generates a new point with that id (or a new id) and you repeat adding cabinets.
I don’t know if this might help, it’s just a super stupid C# thingy that remembers the position of the last point and adds the length of the last object when you press “Next”
this way the workflow should be:
Reference the initial point (like always)
click “Reset position”
adjust sizes → Bake
click Next
adjust sizes → Bake
click Next… and so on
the C# script just “remebers” the point you are working on: when you click the “Next” button, the component adds the “Largura” value to the x coordinate of the point stored in memory
when you click the “Reset” button, the stored point is overwritten by the original point referenced from Rhino
this way, by clicking Next, you can continue the construction of a new cabinet starting from a new point that has x coordinate = LastPoint x coordinate + Largura
it can for sure be improved, for instance when you click Next it also bakes the current model