Home Forums General discussions Value liste as text instead of numbers? Reply To: Value liste as text instead of numbers?

#4528
David Shorter
Participant

be careful with a dedicated programer …. they MUST understand ARCHICAD AND must leave the code (scripts) unlocked
here is another option…
values “zPos” 0,0.2,0.4,0.6,0.8,1,1.2,1.4,1.6,1.8

if zPos =0 then penAttribute_1= 15
if zPos =0 then text2 .5,zPos,”t1″
if zPos =.2 then penAttribute_1= 16
if zPos =0.2 then text2 .5,zPos,”t2″
if zPos =.4 then penAttribute_1= 17
if zPos =0.4 then text2 .5,zPos,”t3″
if zPos =.6 then penAttribute_1= 18
if zPos =0.6 then text2 .5,zPos,”t4″
if zPos =.8 then penAttribute_1= 19
if zPos =0.8 then text2 .5,zPos,”t5″
if zPos =1 then penAttribute_1= 20
if zPos =1 then text2 .5,zPos,”t6″

unID=2000

HOTSPOT2 .5, 0, unID, zPos, 1:unID=unID+1
HOTSPOT2 .5,-0.1, unID, zPos, 3:unID=unID+1
HOTSPOT2 .5, zPos, unID,zPos, 2 :unID=unID+1

mul2 A/0.467201, B/0.467201
set line_type lineTypeAttribute_1
pen penAttribute_1
fill fillAttribute_1
poly2_b{5} 5, 3, 1, 3, penAttribute_1, penAttribute_2,
0, 0, 1, 0, 0, 1, 0,
-0.233600530869, 2.860781424079E-17, 33,
0, 1.430390712039E-17, 900,
0, 180, 4033,
0, 1.430390712039E-17, 900,
0, 180, 4033
!_____________________________________
zPos is a length parameter
and the script creates a moveable hotspot that you can drag vertically and change the text and the pen at each position.
Means you dont have to open the object dialogue to change the settings its all done through the moving hotspot.
all the above is in the Master script and the parameters are in the screenshot