!update = !!Alert.Confirm('Update Drawings?')
if (!update eq 'YES') then
$p UPDATE ALL
else
!confirm = !!Alert.Confirm('Proceed to Extraction?')
if (!confirm eq 'YES') then
var !sheets collect all SHEE for CE
do !sheet values !sheets
$!sheet
enddo
endif
endif
[COLOR=#333333]!update = !!Alert.Confirm('Update Drawings?')[/COLOR]
[COLOR=#333333]if (!update EQ 'YES') then
[/COLOR][COLOR=#ff0000]--$p UPDATE ALL[/COLOR]
[COLOR=#333333]UPDATE ALL[/COLOR]
[COLOR=#333333]else[/COLOR]
[COLOR=#333333]!confirm = !!Alert.Confirm('Proceed to Extraction?')[/COLOR]
[COLOR=#333333]if (!confirm EQ 'YES') then[/COLOR]
[COLOR=#333333]var !sheet collect all SHEE for CE[/COLOR]
[COLOR=#333333]do !x from 1 to !sheet.size()[/COLOR]
[COLOR=#333333]$!sheet[$!x][/COLOR]
[COLOR=#333333]!dir = 'C:\temp\'[/COLOR]
[COLOR=#333333]!filename = !dir + !!CE.NamN.Replace('/','.').Replace('\','.') + '.dwg'[/COLOR]
[COLOR=#333333]$m/%pdmsexe%\full_dxf.mac[/COLOR]
[COLOR=#333333]LIEXEC /Draft_DWG_LI 'R21' CONFIGDATA 'full_dxf' OutputFileName '$!fileName'[/COLOR]
[COLOR=#333333]enddo[/COLOR]
[COLOR=#333333]elseif (!confirm EQ 'NO')then[/COLOR]
[COLOR=#333333]!!Alert.Message('Extraction Aborted!')[/COLOR]
[COLOR=#333333]return[/COLOR]
[COLOR=#333333]endif[/COLOR]
[COLOR=#333333]endif[/COLOR]
[COLOR=#333333]!!Alert.Message('Successfully Extracted!')[/COLOR]