Noob DC question
-
I've tried following this tutorial but my end product isn't quite right. I'm trying to make a component so that when I scale the component along a line it will duplicate the kerb component to be the right size. I'm having trouble explaining the issue that I am having with it so I attached the sketchup file. What am I doing wrong?
-
one should test each expression or formula
you wrote:
copies=(Component#2!LenX)/(Component#23!LenX+Component#2!spacing)-1
put in the current values
=320/(320+320)-1
=-0.5as copies rounds to an integer, the result is -1
the answer you want is 0
try
=Component#2!LenX/LenX-1 (that is the full length / length of the kerb=1 then -1 as you don't need a copy)(side note: you can after placing the"=" click on variables to place them as you do on excel or spreadsheet cells to build your expression to save writing)
then you need to move any copy to desired position
expression for position
x =copy*LenXcopy is a read only attribute which appears in the copied item
x = 0*360 = 0
now try scaling
you will note that the repeated shape is always short of the grass,
if the scale is increased enough for the copy, if you click into one of the copied items you will see the read only item "Copy"
you need to now consider whether you want the final result to be a fixed multiple of your component#23, or some variant of component#1
or you may take up the difference by spacing the kerb unitsthe decision is yours
-
@pcmoor said:
.....
Thankyou. I had a feeling that might have been where my issue was. It will help a lot as I have fencing and everything to do and DC should speed the process up.
I've attached the kerb in action.
Advertisement