[Otázka] 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?

Přílohy (1)

Type: image/jpeg
Staženo 33
Size: 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

Přílohy (1)

Type: text/xml
Staženo 365
Size: 10,17 KiB

Citoval 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!


https://campus.allplan.com/ používá cookies  -  Více informací

Souhlasím