cborer Posted December 14, 2022 Share Posted December 14, 2022 This is the ground of a box with 5 Feet (Blocks) I want the blocks in equal distance from each other depending on the Length of the box Need a formula Something like this: Length Ground +6cm – Width Block / Number*Distance + Number*With Block Number/Amount here = 4 4*Distance + 4*With Block Any help is apreciated. Box-BodenP2.ics Quote Link to comment Share on other sites More sharing options...
cborer Posted December 14, 2022 Author Share Posted December 14, 2022 (edited) Ah! Parameters: With Block Amount Blocks depending on Lenght Ground ....I would like to say 4 or 5 or 6 blocks with the width of 10 cm or 20 cm... Edited December 14, 2022 by cborer Quote Link to comment Share on other sites More sharing options...
Bertrand Kim Posted December 14, 2022 Share Posted December 14, 2022 Hi Carlo, I couldn't understand your request 55 minutes ago, cborer said: I would like to say 4 or 5 or 6 blocks with the width of 10 cm or 20 cm... Can you give us more information what do you want to achieve? I need two pictures, 4 block with the width of what and 6 block with the width of what. I will try to solve it Kim Quote Link to comment Share on other sites More sharing options...
cborer Posted December 14, 2022 Author Share Posted December 14, 2022 Dear Kim Thank you I would like finally to be free to: 1. the amount of Blocks 3 or 4 or 5 aso. 2.the size of the block (width Block) Quote Link to comment Share on other sites More sharing options...
Bertrand Kim Posted December 15, 2022 Share Posted December 15, 2022 7 hours ago, cborer said: Dear Kim Thank you I would like finally to be free to: 1. the amount of Blocks 3 or 4 or 5 aso. 2.the size of the block (width Block) Hi Carlo, I'm not sure this is what you want. Box-BodenP22.ics bandicam 2022-12-15 09-10-04-303.mp4 Kim Quote Link to comment Share on other sites More sharing options...
ASPEER Posted December 15, 2022 Share Posted December 15, 2022 (edited) The way I would set that up is to first decide (hardcode) a maximum distance between blocks, use that (rather the block centres) to determine the number of blocks, then divide the total length by the number of blocks +/- 1 depending on how you want to set the end blocks. So Num Blocks = Modulus(Length/[max distance]) //Modulus to ensure rounded down integer Block Centre distance = (Length - Block Width + 6cm)/Num Blocks //This will have the blocks overhanging 3cm each side if centred I should mention that there are a few details that would need to be changed depending on how you implemented the blocks. Edited December 15, 2022 by ASPEER clarification Quote Link to comment Share on other sites More sharing options...
cborer Posted December 15, 2022 Author Share Posted December 15, 2022 Thank you both so much! Kim you are a genious! Thank you so much! PS The distance between the blocks is variable depending on the amount of the blocks.(which I simply put in the field for it? (must try) Thank you Asper ....I try to understand..... My first expierience with Parametrics in IC Not first.....Grasshopper, I learned a bit. Best & 1000 thanks Carlo Quote Link to comment Share on other sites More sharing options...
cborer Posted December 15, 2022 Author Share Posted December 15, 2022 (edited) Hi all Thanks to your help I could finally solve it. Here it is!: (((BodenL + 6 cm) - FussBr) / (Number - 1)) .....did the Job And the file....feel free to use it! Enjoy Best wishes Carlo Box Boden-Paramer-Tool.ics Edited December 15, 2022 by cborer Quote Link to comment Share on other sites More sharing options...
cborer Posted December 15, 2022 Author Share Posted December 15, 2022 Hi Iron Cad It would be nice to have a Drive Box in the Scene where I could drive something connected to the parameter Box Lets say here: the amount of Boxes. (Put in a Number) ER: Right Click on a Parameter / Create a Drive Box / Numbers Similar to Grasshoper Quote Link to comment Share on other sites More sharing options...
cborer Posted December 15, 2022 Author Share Posted December 15, 2022 ....I had to add some more constrains. Here it is including a side wall Drag it in the catalog..... enjoy Parametric Box2.ics Quote Link to comment Share on other sites More sharing options...
Bertrand Kim Posted December 15, 2022 Share Posted December 15, 2022 NIce Carlo! Is it a packaging box? Here is a good packaging box sample with Push & Pull parametric. Watch it if you are interested. https://ironcad.academy/tutorial/push-pull-parametric-design-intelligence Kim 1 Quote Link to comment Share on other sites More sharing options...
cborer Posted December 19, 2022 Author Share Posted December 19, 2022 Yes Very cool Thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.