Download as xls, pdf, or txt
Download as xls, pdf, or txt
You are on page 1of 12

NO COMMAND DISCRIPTION

1 !!alert.question warning 경고 메시지 창이 나타남.


current element의 volume값을 array값으로 지정됨.
array[1] volume의 최소 X 값
array[2] volume의 최소 Y 값
2 !!ce.wvol array[3] volume의 최소 Z 값
array[4] volume의 최대 X 값
array[5] volume의 최대 Y 값
array[6] volume의 최대 Z 값
3 !a = !b.east 변수 !b의 east position.
4 !a = !b.mod() ?
5 !A.CLEAR() 지정된 ARRAY변수를 삭제함.
6 !A.DELETE() 지정된 변수 !A를 삭제함.
7 !b = !a.int() or !b = !a.nint() .
8 !c = !c.int() ?
9 $M macro file를 실행.
10 $m macro file을 up load 시킴
11 $m $m /c:\test.mac
12 $P alpha창에 print하라는 명령어.
13 $p print
14 $Q command 다음에 사용할수있는 명령어를 나타낸다.
new elbow choose $q
15 $q new elbow choose command 이후에 나올수 있는 모든
command 들을 보여준다.
16 $r0 명령을 종료함.
17 $r13 /d:\a.txt 선택한 form의 mocro파일을 a.txt에 저장
18 $r14
19 $r5 /d:\a.txt 선택한 form의 실행파일을 a.txt에 저장
20 $r6 선택한 form의 실행파일을 command 창에 나타냄.
21 $s synonym 단축키를 만든다.
SYNONYM
22 $S
$SXXX = NEW ELBOW XLEN $ S1 YLEN $S2 키도 $3
(MD05-ZONE 선택)include
23 MD04 에 있는 element를 MD05로 이동
/MD04NAME
24 반올림 !a = 1.2345
var !x name
25 변수선언 var !x 'name'
!x = real
26 소수점 !a = !w.string('d1')
27 ABS 절대상수 (상수)
28 aconn ?
!!myform.cmdbutton.active = false
29 ACTIVE
!!myform.cmdbutton.setfocus()
30 add ce 현재 element를 on시킴.
31 add ce col 239 현재 element를 추가하고 컬러를 239번으로 나타낸다.
32 add cref 현재 branch에 connection된 branch를 add시킴.
현재 branch의 head(tail)에 connection된 branch를
33 add href(tref)
add시킴
aid test 'Start' at E 0 N 0 U 0
aid line E 0 N 0 U 0 to E 100 N U 0
aid arrow at E 0 N 0 dir E hei 100 prop 0.5
34 AID
Var ! A poss in/*
var ! B pose in/*
aid text 'Start' at $!a
35 aid clear all ?
36 aid clear all
37 aid line E 0 N 0 U 0
aid text 'Welcome to SHI' at E 0
38 E 0 N 0 U 0 position에 text 가 나타난다.
N0U0
NO COMMAND DISCRIPTION
!a = !!alert. Error('You cannot do this!')
!a = !!alert. message('Saving your data now')
39 ALERT !a = !!alert. warning('Do not press this button again!')
!a = !!alert. confirm('Are you sure')
!a = !!alert. Question('OK to delete Site?')
align right
align top
40 ALIGN align left
align bottom
align centre
ALPHA LOG
41 $14
$0
alpha log /c:\test.txt over
42 alpha log end command window 창에 display 되는 text를 file로 다운로드 한다.
alpha reqest clear
Alpha log /c:wvolume.txt over
43 Alpha창의 txt문자를 file로 copy함
Alpha log end
44 alpha reqest clear Alpha창의 문자를 모두 지운다.
view . Inputview at x 0 y 0 alpha
hei 20 width 40
45 ALPHA VIEW
channel requests
channel commands
46 ALPHA창 cammand input창
47 append
!myarray = array()
48 APPEND
!myarra. append('data')
49 APPEND() text.txt 'name' call '!this.amethod(!this.txt.val)'
define method .amethod(!input is real)
50 Argument !this.aa.val = !input * 1.8
endmethod
51 array CLEAR !myarray. Clear()
52 array copy !newarray = !myarray. Removefrom(5,10)
53 at 절대좌표로 이동시킴.
54 autocolour all equi colour 5 사전 colour를 정의해 준다.
55 autocolour on type 마다 지정해 놓은 colour로 add된다.
56 autocolour reset 모든 colour setting 을 해제
AXES AT P0
57 AID CLEAR ALL
AXES OFF
58 bangle β(beta) angle 형강재의 회전 각도. (최대 180도)
setup form !!test dialog size 30 5
bar
!this. Bar. Add ('choose','Menu1')
59 BAR
!this. Bar. Add ('Window',")
!this. Bar. Add ('Help',")
exit
60 BOOLEAN True & FALSE
61 bop 30 behind pl of [/name]
62 BREAK
button . Cmdapply 'Apply' form !!popform
63 BUTTON
call '!!function()
64 by 상대좌표로 이동시킴.
call 'show !!form'
call 'delete equipment'
65 CALL
call '!!function()
call "!this.method()'
66 CANCELCALL -button.cmdDismiss' cancel
67 CATA catalogue(배관/구조/전,계장/HVAC...)
68 CATE Category(TRAY/PERFORATED/HANGLE…)
!BranchHeadBore = !!ce.hbore

69 CE
NO COMMAND DISCRIPTION
!HeadPosition = !!ce.Hpos
69 CE
!Easting = !HeadPosition.east
!PosWRTValve = !HeadPosition.WRT(!valve)
70 choice Q choice
71 choice spref의 answer
72 choice stype Q choice stype
73 choose component type을 선택한다.
74 choose autoconn on/off
75 choose forceconn on/off
76 choose rtext
77 claim ?
78 claim ce hierarchy 선택된 hierarchy에 속하는 모든 member들 까지 claim 시켜
79 clash check ce q clash check ce
80 clea 50 onto IDP@
81 CLEAR()
현재 element 의 arrive position과 previous leave position과의
82 clearance 500
distance 를 500mm로 이동한다.
83 clle total length
84 cllen branch의 총 length를 나타냄.
85 cllen 모든 component의 length
86 coco
87 collect var !a collect all elbow for ce
88 COMPOSE var !a compose 'hello how are you' width 5
89 conn connect
p3가 있는 component들에 대해서 connect하고, p3 direction
90 conn and p3 is u
방향을 지정한다.
91 conn p1 to p2 of prev connect
92 conn ph to [/name] head/ tail 을 특정한 element와 연결한다.
branch level에서만 사용
93 conn ph to first member head을 첫번째 member로 정하되, connection정보를 상실하게
된다.
94 conn ph(pt) 새 [/name] head/ tail 을 특정 element와 연결
95 conn ph(pt) to ID elbow @ head/ tail 을 지정하는 elbow에 연결
96 conn ph(pt) to IDP @ head/ tail 을 지정하는 P-point에 연결
97 conn pt to last mem
98 conn pt to last memer 새로 생성된 component의 connenction을 마지막 멤버에 연결
99 conn pt to last memer branch level에서만 사용
100 conn to next 현재의 ce를 다음 element와 connect시켜준다
component에 owner branch가 아닌 다른 branch가 connetion
101 cref
되었을때 cref에 connection 정보가 input된다
102 crit criteria 기준,표준
103 cutlength
104 Dbname
105 ddangle angle 변수지정
106 ddheight length 변수지정
107 delete bran mem all
108 delete ce
NO COMMAND DISCRIPTION
109 delete member1
110 DELETE()
111 desc of zone zone 의 description을 조회한다.
112 desp design parameter
113 desp design parameter
114 DIR AND P3
115 dist distance
116 DIST plan s dist 1000
117 dist 1000 centre to centre 기준 leave direction 방향으로 1000 이동.
118 dist 125 behind IDP@
119 dist 125 under IDP@
120 dist 50 behind /name
121 dist 50 from [name]
122 dist 50 infront /name
123 dist 50 to [/name]
dist 50 to PANEL 3 of FRMWORK
124
/U4P-STRU/PRI/FRMW
!a = apos in /*
distance (거리) !b = lpos in /*
125
midpoint (중간점) !length = !a.distance(!b)
!mid = !a.midpoint(!b)
do !i from 1 to 10 by 2
do !i index !list
126 DO
$!i [$!list]
enddo
같은 수직선상이나, 수평선상에 있는 component들을 100mm
127 drag by d 100
집단 이동한다.
128 draw q draw-->add되어있는 list를 보여준다
129 DRNE structure end direction 방향.
130 DRNS structure start direction 방향.
DRNS
131
DRNE
132 DTXR description -->spec 의 rtext
133 dtxr dtext
134 end
135 enhance ce col 5 ce를 colour 5번으로 highlight 시켜준다.
136 enhance il tube col 5 ce의 leave tube을 colour 5번으로 highlight 시켜준다
기존 enhance 된 모든 element를 해제시키고, ce를 highlight
137 enhance solely ce col 5
시켜준다
138 evaluate var !a eval name for all from !alist
LT ,GT ,EQ ,NE LE, GE
139 expression NOT ,AND ,OR
SIN ,COS ,TAN ,POW ,INT
140 extend structure start & end point를 연장함
141 fcon to head(tail) head(tail) point에 강제 connect시킴
142 fconn Force Connect (강제로 연결함)
143 fconn
144 fconn to head head point에 강제 connect 시킴
145 fconn to tail tail point에 강제 connect 시킴
146 fconnect Force Connect (강제로 연결함)
!file = object file ('c:\list.txt')
!file.open(write') --그밖의 read, overwriTE, append가 있음.
-----------------open은 변수 file을 나타냄
147 file !file.writefile('a',!zonelist)--'a' 를 쓰는 이유를 모름
-----------------writerecord ('abcd')는 한 줄만 입력 할
때 사용한다
!file.close()
NO COMMAND DISCRIPTION
!input = object file('c:\filename')
!output=object file(c:\filename.out')
!output.open('write')-------->(read) or (overwrite) or
(append)
148 FILE
!lineread = !input.readrecord()
!linewrite = !input.writerecord()
!fileread = !input.readfile()
!filewrite = !output.writefile('write',!fileread)
file /c:\temp\a.txt
현재 element의 modeling 형상을 macro file 로 c;드라이브 temp디랙토리에 a.txt 파일로
149 output ce
저장함.
term
150 file /d:\a.txt
151 finish
152 first member of site 현재 hierarchy 의 owner site에서 첫번째 zone으로 이동.
modeling을 할때 point reference측에서 볼때 p1을 arrive /
153 flip
p2 를 leave가 되나, 이것을 서로 바꾸는 commend이다.
154 flip ori orientaon을 바꾸는 역할을 한다.
155 forw ?
156 FTUBE Fixed TUBE
157 function 독립변수를 가질수 있고 결과를 되돌아 갈수 있다.
158 g gcof structure midfosition
159 gcof 구조 beam midposition표시
160 getwork
161 Goto catref catalogue 로 이동
162 Goto gmref gmref으로 이동
163 Goto hstube ?
164 Goto lstube ? (spcom으로 이동)
165 Goto spref spref로 이동
166 Gtype Generic type
error 메시지를 건너뛴다.
167 handle handle any --모든 error를 건너 뛴다
handle (2,201) -- (2,201)의 abore에 대한 error만 건너뛴다.
handle any
168 HANDLE delete ce
endhandle
169 hconn(tconn) head 와 tail의 connenction type
170 href head reference
171 HSTUBE
172 htle q htle
173 ID @
if ($!name eq 'true')then
elseif (다른조건) then
174 IF
else
endif
175 il ?
176 il tube/ia tube CE 의 leave/arrive true을 선택
이동할곳의 hierarchy를 선택후
177 include
include/ 이동하고자 하는 name
-!!myform. Initcall = '!this.init()'
define method.init()
178 initcall

endmethod
setup form !!ce
!this.initcall = '!this.init()'
button.ce 'CE' call '!this.init()'
para.cename width 30 hei 1
179 INITCALL & CE
exit
define method.init()
!this.cename.val= name
endmethod
NO COMMAND DISCRIPTION
180 ispec insulation spec을 의미
181 itle q itle
182 jusline
lavel /name
183 golabel 에서 다시 label로 이동한다.
golabel /name
Label /name
184 LABLE
Golabel /name
185 leave 1 arrive 2 conn
186 LENGTH
187 LENGTH()
list .lisname 'NAME' call '!this.namem()' single width 8 hei 4
!name[1] = 'Fixd Tray'
188 LIST !name[2] = 'Riser'
!name[3] = 'Bend'
!this.lisname.dtext = !name
189 list list type
190 lock all
pdms에서는 pipe을 modeling 하지 않기 때문에 모든 각
191 lstube
component마다 leave 되는 pipe의 spec reference을 가지고
!a = 'samsung'
!b = 'samsung heavy industries;
192 Match type1 if (match ('$!a','$!b') eq Φ) then
$p okay match
endif
!a ='samsung'
!b ='samsung heavy industries;
193 Match type2 if (match ('$!b','$!a*') eq true) then
$p okey match
endif
menu .menu1
!this.menu1.add('callback','query')
194 MENU !this.menu1.add('hello)
!this.menu1.add('separator')-------->separator
!this.menu1.add('menu','pull-right1','pull1')
195 mode 현재 modeling되고 있는 진행순서 (forward,backward)
196 move dist 1000 leave direction 방향으로 1000만큼 이동.
197 move plane N45E dist 1000
198 move pt by E500 N500 tail position을 east 500 north 500만큼 이동.
199 mtoc mto 여부를 지정해 준다.
head tube의 mto의 boolean을 지정해준다.
200 mtoh
만약 mtoh DOTU하면 도면에는 점선처리되며 비 mto처리됨
201 mtoref
202 mtot
203 mtoxarray
204 ncof
205 new bend choose all
206 new bend choose default
207 new bend select with spec /name
208 new box copy pre by e 100 새로운 box를 이전의 box와 같이 copy 하여 east 방향으로 100 이동
209 new branch copy prev 선택된 branch 를 copy
210 new elbo choose all
211 new elbo select with stype

212 new elbow choose $q new elbow choose command 이후에 나올수 있는 모든 command 들을 command
window에 list 시켜준다.
213 new elbow choose all with design 에서 새로운 elbow를 선택하여 modelling한다.
stype OOOO
new elbow select with stype
214
aaaa
215 new frub choose all
216 new ftub choose all 새로운 ftube를 선택
217 next 다음 member 로 이동
218 nwei structure weight를 표시
219 OKCALL ,-button,cmdOk C345
NO COMMAND DISCRIPTION
220 olist own list type
option, optcolour, 'COLOUR'width 10
!colourarray[1]='black'
221 OPTION
!colourarray[2]='blue'
!this, optcolour,dtext=!colourarray
222 order list position
223 ori orientation
224 ori and p3 is N
225 output ce
226 overwite 겹쳐쓰기
227 overwrite
228 owner 상위의 hierarchy
229 p1 of pre
230 pa insu q pa insu
231 para parameter
232 PARA para. Parname at 0 0 text 'NAME'
233 PART !a=part('$!this.opt',1'-')
234 pen:Bfpen backfacepen
235 pen:Clpen centreline pen
236 pen:Dlevel Draw Level
237 pen:Fpen frontface pen
238 pen: Mlnpen Memberline pen
239 pen:Plnpen P-line pen
240 pgrad 1 q pgrad1
241 p key pline key
242 pl bop q pl bop
243 plan dist E 1000
244 pline 외형선
245 PLOT

setup form !!view


view. View1 plot with 40 hei 20
exit
246 PLOT VIEW define method !!view()
!this. View1.borders=false
!this.view1,add('c:\aa.plt')
endmethod

247 pml index


248 pml rehash all pmllib index를 loading
249 pml reload Form !name 한번 loading 된 form 을 재 loading 시킴
250 polar E45N dist 300
251 Pos pa dist 1000 arrive position 을 기준으로 하여 previous element 에서 leave direction 방향으로 1000
이동.
252 Pos pa dist 2000 from

253 pos pa dist 500 from pl of prev 현재의 element arrive position 과 privious element leave positin 의 거리가 500이
되는곳으로 이동
254 pos ph through E1000 backward 상태에서 head position 을 owner 좌표 east 1000으로 평행이동시킴
[backwards]
255 pos pl infront [/name]
256 pos pt dist 1000 tail point 를 list member 기준으로 1000mm 이동
257 pose structure end position
258 poss structure start position
259 ppline TOS dir 구조 beam TOS 방향표시
260 pre 앞의 member로 이동
261 primitive 기본적이고 근본이 되는 단위
262 prop proroperty
263 pspe of bran Ppoint spec을 나타냄
264 pspec branch 에서 default spec을 지정
265 pspec branch 의 하위 hierarchy 인 component 의 default spec을 정해준다.
266 purp purpose
267 purp of zone zone 의 purpose를 조회한다.
268 q claimlist project 전체 claimlist 를 보여준다.
NO COMMAND DISCRIPTION
269 q lcim 본인 db에 해당되는 claimlist를 보여준다
270 quit
271 read file을 읽는다

!x='56'------>string
272 real
!zz=!x.real ()--->real

273 reconnect branch head 나 tail 의 connect 정보나 connect reference인 cref 가 이동되었을때 ,
자동으로 재 연결해주는 command 임

274 recursive 순환, 반복


275 remove ce 현재 element 를 제거한다.
276 remove ce 현재 element 를 off 시킴.
277 rename all/[old-name]/[new-
278 reorder [/name] after 3 같은 owner 밑에서 ce를 [/name]의 세번째 뒤로 hierarchy를 이동시킨다.
279 repr darc 1 arc tolerance 값을 1로 하여 더 smooth 하게 보여준다.
280 repr holes on negative 요소를 적용하여 보여준다.
281 repr insu on representation rule 의 insulation을 보여준다.
282 repr prof cl on tube off 모든 pipe를 off하고 center line 만 보여준다
283 repr update 모든 represetation rule을 적용하여 현재 drawlist를 update 해준다.
284 reselect bend with spec /name 현재 element 를 새로 주어진 spec 으로 변경
285 reselect tube with
spec[/name]
286 reselect with spec[/name] rgroup, rgrname 'name' frame vertical call '!this.m()'
add tag 'left' select 'I'
add tag 'centre' select 'c'
287 RGROUP add tag 'right' select 'r' call '!this.rightm()'
exit
if (!this.rgrname.selection() eq 'c' ) then

288 rotate by 90 about u endif
289 same 이전의 element 로 이동.
290 savework
291 SCOM component (SIZE…)
292 SECT section (FTUB/ELBOW/TEE/BEND... )
293 select/ reselect
294 select with spec [/name] stype
stypename
295 seq query sequence
296 SEQUENCE
297 session

setup form !!myform


title 'My Form Title'
298 SETUP FORM …
exit

299 shop 자재를 구분한다.


300 SIZE !number=!listname.sze()
301 SIZE()
302 skey symbol key
303 SKIP
304 SORT() 정열해주는 명령
305 SPLIT !namestring = !name.split()
306 SPLIT
307 SPLIT() 공백 별로 잘라주는 명령
308 stat 지금사용하고있는 모든 DB LIST를 보여준다.
309 stext

!a='samsung heavy inderstrise'


!b=!a.upcase()
!c=!a.lowcase()
!d=part(!a,1,")=>또는 -의 순서로 설정 할 수 있음.
310 string 편집
!e=trim(after (!a.4.4)
!g=replace(!a,'samsung','hyundai')
!h=trim(!a)
!i=substring (!a,-1,-5)또는 (!a,-5,5)
NO COMMAND DISCRIPTION

!name= 'abcdefghij'
311 string length
!numbername= !name.length()

312 SUBSTRING !a= substing('$!this.txtflow',1,1)


313 synonym(시너님) $s 단축키= $m/d:\temp\test.mac
314 term macro file을 지정한 디렉토리에 저장
315 TEXPANE textpane .textp 'Table' at x20y6 width 50 hei 6
316 thro ID@ 선택한 commponent에 connection
317 thro IDP@ ID Ppoint에 connection
318 thro pre 이전의 member에 connection
319 through ID@ 선택한 element까지 수직이 될때까지 이동
320 to E 1000 N 0 U 0 aid line 이 X방향으로 1000mm 가 나타난다
toggle .togform 'MyForm' call '!!myform'
if (!this.togname.val eq true) then
321 TOGGLE

endif
322 TOOLTIP button cmbd 'exit' tooltip 'Savework and Exit'
323 tref tail reference
324 TRIM !a= trim(after(!ori,'Z IS'))
325 TRIM()
326 tulen bran 안의 tube length
327 tulenth ?
328 unclaim all claim 되어진 모든 hierarchy를 해제 시켜준다.
329 unenhance ce
330 UNLOCK ALL
331 UPDATE DESIGN
332 UPDATE PICTURE
333 VALUE
var !p name o zone
334 var !p zone
변수 !p는 zone의 name이다
335 variable 변수
336 WIDTH()
337 with stype ltub
338 WITHIN
339 write file 전체를 불려 쓴다.
340 WRT 기준점에서의 절대좌표
!volume = !!ce.wvol
!mineast = $!volume[1]
!minnorth = $!volume[2]
341 WVOL !minup = $!volume[3]
!maxeast = $!volume[4]
!maxnorth = $!volume[5]
!maxup = $!volume[6]
변수를 등록하는 명령어
342 SET 예) SET pdms_installed_dir=C:\CADCENTRE\Pdms11.3
%pdms_installed_dir%
도스명령어
343 echo >%pdms_installed_dir%
변수내용을 보여준다.
344 CALLIBD 13DVOL INTS ID ID
345 Q AID ARROW ALL
346 CONST $Q
CONST POS INT LINE IDPL@LINE
347
IDPL@
348 BEFORE('$!VOLU','문자')
349 AFTER('$!VOLU','문자')
ADD ALL SCTN WITH (PURP OF
350 SITE EQ 'STRU') WITHIN E 0 N 0 U
0 TO E 100 N 100 U 100 COL 3
NO COMMAND DISCRIPTION
VAR !P COLLECT ALL PIPE
351
EXCLUSIVE WITHIN VLOUME /NAME
Q VAR
352 !!PML.GETPATHNAME(DESIGNCLAS
H.PMLFRM')
353 Q USERMOD USER MODIFED
354 Q CRINFO CRI INFORMATION
355 ONERROR CONTINUE 강제로 ERROR를 통과 시킨다.
356 Q FIND
357 Q IDLN DESC
358 SYSTAT
359 LIST MDB

#site #bran #pos #pose #posn #posu


360 intelligent Text #p3bor #plbopu #p1pos #para[3]
#view #drwg #rvsn #rvdt #uad1 #p3pos<wrt ce> #hbor

Q NWEI SCTN weight 조회


361
TEE CONNECT POINT 변경. MODITY/COMPONENT/ROUTE ->Split Route APPLY.
license 파일명을 license.lic 로 변경.
License 폴더의 license.lic를 덮어쓰기를 한 후
362 license 파일 연장.
Flexman3.1/imtoos(licensing control)를 실행.->start/stop
Reread에서 먼저 stop버튼 클릭 후 strart버튼 클릭.
363 pin 1 conn to ph branch head position을 pin1으로 설정.
364 pin 1 at E 100 N 100 U 100
365 pin 1 dir N
366 pin 1 by E 100
367 conn pin 1 to IDP@
368 move E dist 100 from pin 1
369 polar pin 1 dist 100
370 closefile 1 file.open 작업 중 error 발생으로 파일닫기가 안될때
371 Q SESSION Last saved session number,Date,User 조회
372 Q PLST TOS Query Pline Start TOS 구조 TOS position 조회
373 Q PLST BOS Query Pline Start BOS 구조 BOS position 조회
374 Q PLST NA Query Pline Start NA 구조 NA position 조회

Utilites /Lists…
Form:List/Collection ↓
Add/ List…↓
새로운 List name 입력 ↓
375 List =>List에 포함할 component를
Member 창에서 선택.
Add /Save ↓
Draft
Drawlist Management 창의 List에서
저장한 List를 선택 후 add...

pml2 (무조건 외울것)


문자를 넣을 경우 사용 (| |) 도 같이 사용
1 ?????'
단, | '?????'|경우는 밖에다 side bar를 써야 함
variable(변수를 선언 할때 사용)
2 var
STRING , REAL , BOOLEAN ,ARRAY등
값을 찾아내서 대입 시키는 기능
3 $!
$!다음에 정의한 값을 넣음
PML MACRO 상에서 적용할수 있는 변수
4 $1~$9
9개만 사용 가능 단.$M /FRED $<HARRY IS DEAD$>는 하나로 인식
5 $/ ENTER 기능
! LOCAL 변수
6
!! GLOBAL 변수
VAR !FRED NAME 현재 변수를 잡을때
7 VAR !POS POS IN WORLD 좌표값을 잡을때
VAR !X 'NAME' 문자를 인식 시킬때
8 VAR !temp (23 * 1.8 + 32) 값을 계산
NO COMMAND DISCRIPTION
9 var !list coll all elbo for ce 다중변수 를 정의
string (!name = 'Fred') 문자 숫자를 사용가능 ''으로 막아줌으로서
real (!!Answer = 42) 숫자만 사용가능
10 boolean (!!Flag = TRUE) TRUE(참) FALSE(거짓) T/F (not 0 1)만 사용가능
array (!values = ARRAY() 다중변수를 정의
!newarray[1] = |xxx| or !newarray[1] = 'XXXX'
var !XLEN (1000)
VAR !YLEN (1000)
11
VAR !ZLEN (1000)
NEW BOX XLEN $!XLEN YLEN $!YLEN ZLEN $!ZLEN
VAR !Z ('$!X' + '$!Y') PML 1
12
!Z = !X + !Y PML 2
LT 작으면
GT 크면
EQ 같으면
NE 같지 않으면
LE 작거나 같으면
13
GE 크거나 같으면
NOT 아니면
AND 그리고
OR 또는
() + - / * 사칙연산
DO------>ENDDO DO !Loopcounter Form 10 To 100 BY 2(2개단씩의 경우 BY를 넣는다)
Break If (!count GT 12) 종료를 위한 조건문
14
skip If (!count GT 12) 특정 조건이 되면 건터뜀 If (!x = !y) then /skip /endif(/여기선 다음줄 의미)

DO !X vlaues !name DO !X index !name


$!X $!name[$!X]
15
new text name $!X-aaa new text names $!name[$!x]-aaa
enddo enddo
var !zones collect all zones for site
16 var !name(namn) Eval for all From !zones
var !valvelist Eval name for all VALV with (Match (name, 'V') Gt 0) for $!this.optsite
If ( ) Then 중요한 문장으로 모든 변수및 기능을 정의 할수 있음
elsif ( ) Then
17
Else
endif
handle (46,27)또는any 문장상에 err가 발생할경우 강제로 잡는 명령
18
endhandle
$s callp = $M%pdmsui%des/pipe/$s1
callp Mpipe 기존의 프로그램 부를때
19 F????? Form을 말함
I???? spec를 정의한 파일
M????? key-in을 후 버튼을 느루는 방식
!P = !!ce.position.WRT
20 !new pos = !!ce.pos
!newpos.north = !newpos.north !posup = !!ce.up
!line = 'Hello world how are you'
21 upcase(대문자) / Locase(소문자)
!newline = !line.upcase().split().sort()
!!Alert.Error('에러가 발생')
!!Alert.Message('전달하고자 하는 글')
!!Alert.Waring('알림기능')
22
!!Alert.confirm('선택해서 작업을 진행') {!Answer = Alert.Confirm('~~~~')}
!!Alert.Question('~이면 /~가 아니면 / ~이도 저도 아니면'){!Answer = Alert.Question('~~~~')}
!!Alert.Input ('값을 입력 받아서'){!Answer = Alert.Input('~~~~')}
Define Method .aaa() Method를 시작
23
endMethod Method를 끝냄
!!myform.show() 띄울때
24 !!myform.hide() 숨길때
kill !!myform() 완전히 죽일때
25 setup form !!Fname dialog dock left
NO COMMAND DISCRIPTION
!!myform.gadgetname.setfocus(자동으로 다음칸으로 넘어 가게 하는 명령어
26
Text .txtWidth 'Width ' Call '!This.txtHeight.SetFocus()' Width 4 is Real
!framepos = 'at xmin ymin Width 35 height 8'
Frame .tebsetall tebset at x0 y0
frame .frmtab1 'aaa' $!framepos
27 exit
frame .frmtab1 'aaa' $!framepos
exit
exit
28 !!Workbench.apply.background = 10 (button에 색깔을 넣을때)
Button .apply pixmap /c:/pml/file.bmp(그림 파일로 대체 할때)
list .subdirs 'sub dir' callback '!This.sdir()' Width 60 hei 4
list .subdirs 'sub dir'Multe callback '!This.sdir()' Width 60 hei 4 (다중선택)
list .lsttest |columms…| Anchor all Columns height 20 Width 40
29
!This. Lsttest.setheadings(!Headline) 앞글자 순으로
!This. Lsttest.Setrows(!TotalList) 가로글자순으로
!This. Lsttest.Setcolumns(!TotalList) 세로글자순으로
30 Textpane .txtp 'my textpane' at x3 y 6 Width 50 height 6
!myArray = Array() array기능중 가장 많이 사용 하므로 꼭 외워 둘것
31
!MyArray.append('data')
32 !namestring = !name.split() !namestrings = !name.split('%')%란 말이 있는데서 자름

You might also like