mediumsliced
New member
Hello everybody,
Here's a challenge that's been trying my poor little brain. I'm trying to use relations, parameters and an axial pattern to create numbers on a watch dial or clock face. For example, it may be "12 1 2 3 4 5 6 7 8 9 10 11" or it may be "XII I II III IIII V VI VII VIII IX X XI".
Read an example of a relation using the EXTRACT function on the PTC/USER exploder, but for the life of me, I can't find documentation on that particular function, so I don't know how it works.
The example I got from the exploder goes a little something like this:
LETTERS="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
NUM_CHARS=string_length(LETTERS)
if sd0/6<=NUM_CHARS
ALPHA=extract("ABCDEFGHIJKLMNOPQRSTUVWXYZ",sd0/6,1)
else
L1=floor(((sd0/6)-1)/NUM_CHARS)
L2=sd0/6-L1*NUM_CHARS
ALPHA=extract(LETTERS,L1,1)+extract(LETTERS,L2,1)
endif
Can anybody help? I can't make heads or tails of the relation above, especially the extract, L1, L2 and ALPHA bits.
Edited by: mediumsliced
Here's a challenge that's been trying my poor little brain. I'm trying to use relations, parameters and an axial pattern to create numbers on a watch dial or clock face. For example, it may be "12 1 2 3 4 5 6 7 8 9 10 11" or it may be "XII I II III IIII V VI VII VIII IX X XI".
Read an example of a relation using the EXTRACT function on the PTC/USER exploder, but for the life of me, I can't find documentation on that particular function, so I don't know how it works.
The example I got from the exploder goes a little something like this:
LETTERS="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
NUM_CHARS=string_length(LETTERS)
if sd0/6<=NUM_CHARS
ALPHA=extract("ABCDEFGHIJKLMNOPQRSTUVWXYZ",sd0/6,1)
else
L1=floor(((sd0/6)-1)/NUM_CHARS)
L2=sd0/6-L1*NUM_CHARS
ALPHA=extract(LETTERS,L1,1)+extract(LETTERS,L2,1)
endif
Can anybody help? I can't make heads or tails of the relation above, especially the extract, L1, L2 and ALPHA bits.
Edited by: mediumsliced