|
楼主 |
发表于 2019-2-21 16:38:19
|
显示全部楼层
本帖最后由 jim357951 于 2019-2-21 18:04 编辑
或者有人知道那些函數是我需要用到的,我對函數認識的不多,目前想用下面2個函數來做編寫
axlNetEcsetValueGet
axlDBChangeText
再透過CHANGE VIA NET的SKILL做修改,希望有人可以給些意見,
axlCmdRegister( "cvia" 'x_change_via_net)
defun( x_change_via_net ()
prog((p all vnet n_pad n_xy ch_via_logfile ch_via_logport flag)
axlSetFindFilter( ?enabled
list("noall" "vias") ?onButtons
list("noall" "vias"))
while( axlSelect()
axlHighlightObject(axlGetSelSet())
all = axlGetSelSet()
)
case( axlUIGetUserData()->doneState
(done
when( all == nil then
axlUIConfirm("You have select nothing!")
return(nil)
)
vnet = axlUIDataBrowse('NET '(RETRIEVE_OBJECT) "Please select net" t)
when( vnet == nil return(nil))
ch_via_logfile = axlTempFile()
ch_via_logport = outfile(ch_via_logfile)
flag = nil
foreach( p all
n_pad = p -> name
n_xy = p -> xy
if( axlDBIsFixed(p) then
fprintf(ch_via_logport, "Ignore Change FIXED VIA @ %L\n" , p -> xy )
flag = t
else
when( axlDBCreateVia(n_pad n_xy car(vnet))
axlDeleteObject(p)
)
)
)
close(ch_via_logport)
when( flag axlUIWExpose(axlUIViewFileCreate(ch_via_logfile "Change Via Net Log" nil)))
)
(cancel
axlUIWPrint(nil "cancel")
)
)
))
|
|