Reply To: To add text to an object and make the text to follow a hotspot and be always hor

Home Forums General discussions To add text to an object and make the text to follow a hotspot and be always hor Reply To: To add text to an object and make the text to follow a hotspot and be always hor

#18316
Ricardo Rodriguez
Participant

this is the 2d script if it makes it easier

mul2 A/0.201778, B/0.241300
add2 0′-4.7927″, 0′-0.0000″
set line_type lineTypeAttribute_1
pen penAttribute_1
fill fillAttribute_1
poly2_b{5} 5, 2, 0, 3, penAttribute_1, penAttribute_2,
0′-0.0000″, 0′-0.0000″, 3′-3.3701″, 0′-0.0000″, 0′-0.0000″, 3′-3.3701″, 0′-0.0000″,
0′-3.1514″, 0′-4.7500″, 1,
0′-0.0000″, 0′-4.7500″, 900,
0′-0.0000″, 590′-6.6142″, 4001,
0′-0.0000″, 0′-4.7500″, 900,
0′-0.0000″, 590′-6.6142″, 4001
pen penAttribute_3
line_property 0
line2 -0′-1.3887″, 0′-4.1413″, 0′-0.0000″, 0′-4.7500″
pen penAttribute_4
line2 0′-0.0000″, 0′-0.0000″, 0′-0.0000″, 0′-2.0000″
pen penAttribute_3
line2 0′-1.3887″, 0′-5.3587″, 0′-0.0000″, 0′-4.7500″
pen penAttribute_5
line2 0′-0.0000″, 0′-7.5000″, 0′-0.0000″, 0′-9.5000″
pen penAttribute_3
arc2 0′-0.0954″, 0′-3.9021″, 0′-1.9048″, 266.981593756, 359.1456746775
arc2 0′-0.0136″, 0′-3.7963″, 0′-1.7964″, 214.183464956, 269.4104437957
arc2 -0′-0.5250″, 0′-3.4081″, 0′-1.1329″, 139.6717974381, 213.2478509556
arc2 -0′-0.0954″, 0′-5.5979″, 0′-1.9048″, 86.98159375601, 179.1456746775
arc2 -0′-0.0136″, 0′-5.7037″, 0′-1.7964″, 34.18346495604, 89.41044379571
arc2 0′-0.5250″, 0′-6.0919″, 0′-1.1329″, 319.6717974381, 33.2478509556
pen penAttribute_6
hotspot2 0′-0.0000″, 0′-0.0000″
hotspot2 0′-2.0000″, 0′-3.8737″
hotspot2 -0′-1.4724″, 0′-2.7870″
hotspot2 -0′-1.3887″, 0′-4.1413″
hotspot2 0′-0.0000″, 0′-4.7500″
hotspot2 0′-1.3887″, 0′-5.3587″
hotspot2 0′-1.4724″, 0′-6.7130″
hotspot2 -0′-2.0000″, 0′-5.6263″
hotspot2 0′-0.0049″, 0′-7.5000″
hotspot2 0′-0.0000″, 0′-9.5000″
hotspot2 -0′-0.0049″, 0′-2.0000″
hotspot2 -0′-3.6677″, 0′-1.7897″

define style{2} “AC_STYLE_1” “Verdana”, textsize /72 * 25.4, 0
r = request (“View_Rotangle”, “”, _angleViewRot)
_totalRotate = (SYMB_ROTANGLE + _angleViewRot) MOD 360 ! Actual rotation of the 2D symbol
_nTrans = 0

if iTypeTextRotation = 2 then ! Readable
if (_totalRotate > (90 + EPS) & _totalRotate < (270 + EPS)) then
rot2 180
_nTrans = _nTrans + 1
endif
else
if iTypeTextRotation = 1 then ! Horizontal
rot2 _totalRotate * (SYMB_MIRRORED – not(SYMB_MIRRORED)) ! 1/-1
_nTrans = _nTrans + 1
endif
endif
paragraph “AC_PRG_2″ 2, 0′-0.0000″, 0′-0.0000″, 0′-0.0000″, 2′-11.4331”
pen penAttribute_9
set style “AC_STYLE_1”
firstline
endparagraph
textblock “AC_TEXTBLOCK_2″ 0′-0.0000″, 5, 0′-0.0000″, 3′-3.3701″, 3′-3.3701″, 3′-3.3701”,
“AC_PRG_2″
richtext2 -0′-3.6677″, 0′-1.7897”, “AC_TEXTBLOCK_2″
fill fillAttribute_2
poly2_b{5} 5, 2, 0, 3, penAttribute_7, penAttribute_8,
0′-0.0000″, 0′-0.0000″, 3′-3.3701″, 0′-0.0000″, 0′-0.0000″, 3′-3.3701″, 0′-0.0000″,
-0′-4.7927″, 0′-0.0000″, 1,
-0′-2.5427″, 0′-0.0000″, 1,
-0′-2.5427″, 0′-3.5794″, 1,
-0′-4.7927″, 0′-3.5794″, 1,
-0′-4.7927″, 0′-0.0000”, 1