hi dan,
i came now back to this part of the ruby.
is it possible to COPY instead of MOVE somehow? i tried several things, but ther is no
group.copy!
obviously in the ruby syntax.
the trial of mine:
#within a bigger loop >>> FL
#.....
new_line1 = @entities2.add_line @rl1a, @rl2a # define line for vector
length = new_line1.length
#
rasterarray_h = length.divmod(5.0/@faktor/@teiler_cm ) # gaps shall be near 5 cm
raster = length / rasterarray_h[0] # calculate gap between verticals ( == true length)
#
@stab = @entities2.add_group
@stab.name = "stab_senkrecht"
entities_stab = @stab.entities # the group to be copied along new_line1
@rl1a = [(fl)* const1+var2*var3 , (fl)* const2+var4 , 0 + (fl)*(@pmod * @rise)+@railsgapunten]
@rl2a = [(fl)* const1+var2*var3 , (fl)* const2+var4 , 0 + (fl)*(@pmod * @rise) + var6+@railsgapunten]
#
edge = entities_stab.add_line @rl1a, @rl2a # create 1st vertical in the group
#
puts "#{__LINE__} ; edge created"
puts "#{__LINE__} ; raster ; #{raster}"
puts "#{__LINE__} ; length ; #{length}"
puts "#{__LINE__} ; rasterarray_h[0] ; #{rasterarray_h[0]}"
#
for v_line in 1..rasterarray_h[0] # copy group along new_line1 in distance raster
#puts v_line
vector = new_line1.start.position.vector_to(new_line1.end.position)
vector.length = v_line*raster # every step 1 raster more
#@stab.move!(vector) # TRIAL 1 ???????
#@stab.parent.entities.transform_entities( vector, @stab ) # TRIAL 2 ???????
end # v_line loop
thanx for helping again. copying in 3d by distance would be a great step further......
stan
