Dynamic Components Copy Positions
-
Hi to all,
I'm a newbie with dynamic components and I'm finding some difficulties as such. Web is not so helpful like it was when it was with the basic sketchup. Anyway!
I've managed to copy components and position them with formulas. I cannot find a way though and here is my question:
Is there a way to copy a component as specified by the user and position them as he likes.
For example:
The user wants 4 copies of a horizontal member in a frame (let's say 5 metres in hieght). Then he positions them in
1st at 10cms
2nd at 20cms
3rd at 100cms
while the last at 400cms.
These are not standards or constant position as the user may vary the positions at will and most importantly he can use more or less than 4 copies (maybe 5, 9 or 10)Is there a formula that can be used? Help is much appreciated..I'm stuck
Best regards
Kenneth -
@kennethagiusmosta said:
Hi to all,
I'm a newbie with dynamic components and I'm finding some difficulties as such. Web is not so helpful like it was when it was with the basic sketchup. Anyway!
I've managed to copy components and position them with formulas. I cannot find a way though and here is my question:
Is there a way to copy a component as specified by the user and position them as he likes.
For example:
The user wants 4 copies of a horizontal member in a frame (let's say 5 metres in hieght). Then he positions them in
1st at 10cms
2nd at 20cms
3rd at 100cms
while the last at 400cms.
These are not standards or constant position as the user may vary the positions at will and most importantly he can use more or less than 4 copies (maybe 5, 9 or 10)Is there a formula that can be used? Help is much appreciated..I'm stuck
Best regards
Kenneth
Unless I misunderstand you, from the users perspective, there is no standard distance between copies or number of copies. It sounds like you may want to set up some custom attributes to be filled in by the user in the Component Options Window. The first attribute to hold the number of copies desired and the second to record the sequence of custom spacing for each copy in order. An alternative would be to simply set a default (or custom) spacing value and let the user place the copies themselves with the Move tool.Hope this helps,
Phillip -
Philip H & pcmoor thank you for feedback it was very help full
-
Kenneth,
I should have asked, is there a general rule that can also be applied, such as a engineering requirement or building code that might affect minimum or maximum spacing?
@ Philip - great example.
-
You can use condition statements to effect the placement, if you want individual input, perhaps up to ten, then you can use the dialog.
x = 10 + if(copy,10,0) + if(copy>1,80,0) + if(copy>2,300,0)
results for copy: for 0 => 10,for 1 => 20, for 2 => 100, for 3 => 400, your first example
or
x = if(copy=0,value1,0)+if(copy=1,value2,0)+if(copy=2,value3,0)+.......There is an example on my warehouse page
https://3dwarehouse.sketchup.com/model.html?id=u39b49ce8-66fb-4a59-ab35-3e9c9ae3d1eawhere either selected or user input effects position and number of copies of elements to build a door
But after a point, based on complexity and file size, as Phillip says....use Sketchups native tools
Advertisement