Support Forum

[Frage] Stair and special handle


Hi, it's possible to create a handle in such a way that moving it to the right increases the number of steps with the same tread pitch?

Anhänge (1)

Typ: image/jpeg
33-mal heruntergeladen
Größe: 121,46 KiB

It's not a sepcial handle necessary!
Just a restriction for the associated Parameter Length ("len") in Parameter script with VALUES ...STEP:

VALUES "len" RANGE [trd,) STEP 0,trd

RANGE [trd,) .... parameter "len" can have Values from (including) "trd" to infinity(theoretically)
STEP 0,trd .... only values starting from 0 in steps of "trd" are allowed

Then use the parameter "len" in the 2D- or 3D-Script in this way:

id=0
HANDLE2 0,0,id,"len",1
HANDLE2 len,0,id,"len",2
HANDLE2 -1,0,id,"len",3
id=id+1

cnt=int(len/trd)

FOR i=1 TO cnt
RECT2 0,0,trd,-wdt
TRANS2 trd,0
NEXT i

Anhänge (1)

Typ: text/xml
595-mal heruntergeladen
Größe: 10,17 KiB

Zitiert von: Nemo
It's not a sepcial handle necessary!

Just a restriction for the associated Parameter Length ("len") in Parameter script with VALUES ...STEP:

VALUES "len" RANGE [trd,) STEP 0,trdRANGE [trd,) .... parameter "len" can have Values from (including) "trd" to infinity(theoretically)

STEP 0,trd .... only values starting from 0 in steps of "trd" are allowed
Then use the parameter "len" in the 2D- or 3D-Script in this way:
id=0
HANDLE2 0,0,id,"len",1
HANDLE2 len,0,id,"len",2
HANDLE2 -1,0,id,"len",3
id=id+1 cnt=int(len/trd) FOR i=1 TO cnt
RECT2 0,0,trd,-wdt
TRANS2 trd,0
NEXT i

Thank you Nemo for your clarification! Very very well!