레이블이 Script인 게시물을 표시합니다. 모든 게시물 표시
레이블이 Script인 게시물을 표시합니다. 모든 게시물 표시

Find the alphabet's order

Let ALP(String)

Let S(String)

Let SA1(String)

Let SA2(String)

Let SA3(String)

Let SB(String)

Let SC(String)

Let i(Integer)

Let n(integer)

Let d1(integer)

Let d2(integer)

Let d3(integer)


S=APP_DrawText\INPUT\inputString_ 

ALP="ABCDEFGHIJKLMNOPQRSTUVWXYZ"

SA1=S->Extract(1,1)

SA2=S->Extract(2,1)

SA3=S->Extract(3,1)


i=1

n=0


for i while i<26

{

SB=ALP->Extract(n,1) 

if SA1==SB

{

d1=n

}

else if  SA2==SB

{

d2=n

}

else if  SA3==SB

{

d3=n

}

n=n+1

}

Retrieving Point Coordinate and Converting to Single String

Let P1(Point)
Let XL(Length)
Let YL(Length)
Let ZL(Length)

Let XR(Real)
Let YR(Real)
Let ZR(Real)

Let XS(String)
Let YS(String)
Let ZS(String)

Let XYZ(String)


P1=`Geometrical Set.2\SelPT`


XL =P1->coord(1)
YL =P1->coord(2)
ZL =P1->coord(3)
' --- ※Point >coord (rank: Integer): Length
' --- ※Returns the coordinates of a point. Returns X if 1 is specified, Y if 2 is specified, Z if 3 is specified.

XR=int(XL/1mm)
YR=int(YL/1mm)
ZR=int(ZL/1mm)

XS=ToString(XR)
YS=ToString(YR)
ZS=ToString(ZR)

XYZ=XS+", "+YS+", "+ZS
`Geometrical Set.2\ResultString` =XYZ

Using the Object Browser

 The object browser guides you when writing a script. It allows you to access the keywords, operators and  feature attributes that can be used when working with Product Knowledge Template.