TA的每日心情 | 开心 2019-11-19 15:32 |
---|
签到天数: 1 天 [LV.1]初来乍到
|
我也寫了一個 歡迎使用
procedure(cln_addnetname()
w1=1
while(w1>0
axlSetFindFilter(?enabled list("noall" "pins" "vias" "clinesegs") ?onButtons list("all"))
_cl=nth(0 axlGetSelSet(axlSingleSelectPoint()) )
_xy=axlLastPick(nil)
_net=_cl->net->name
; 預定將 net-name文字 放在 "PACKAGE GEOMETRY/NETNAME" 可以自己修改
if(!axlIsLayer("PACKAGE GEOMETRY/NETNAME") then axlLayerCreateNonConductor("PACKAGE GEOMETRY/NETNAME"))
axlVisibleLayer("PACKAGE GEOMETRY/NETNAME" t)
if(_net!=""&&_cl!=nil then
tb2l=make_axlTextOrientation(?textBlock "2", ?justify "left")
axlDBCreateText(_net, _xy, tb2l, "PACKAGE GEOMETRY/NETNAME", nil)
++w1
); if(_net!=""
) ;while(w1>0
)
axlCmdRegister("cln" 'cln_addnetname ?cmdType "interactive" ?doneCmd 'clnPopupDone)
procedure(clnPopupDone()
printf("*** CLN Done *** ; add %d texts\n" w1-1)
w1=-1
axlClearSelSet()
axlFinishEnterFun()
)
; Allegro.ilinit 加上 load("cln_addnetname.il")
; 輸入 CLN 然後去點 VIA PIN CLINE就可以 自動加NET-NAME 在"PACKAGE GEOMETRY/NETNAME"
; 2020/11/4 Robert Wu ; via/pin/cline auto add net-name |
评分
-
查看全部评分
|