高亮所有dummy 网络
axlCmdRegister( "hl_null_pin" 'hl_null_pin)defun( hl_null_pin ()
let((all p)
axlClearSelSet() ;清空选择
axlVisibleDesign( nil);设计可见
axlVisibleLayer( "PIN/TOP" t);层可见,top面的pin
axlVisibleLayer( "PIN/BOTTOM" t) ;层可见,bottom面的pin
axlVisibleUpdate(t);更新可见
axlSetFindFilter( ?enabled list("noall" "pins") ?onButtons list("noall" "pins")) 在find对话框里只选中pins
axlAddSelectAll();选择所有,因为find选了pins,所以是选择所有pins
all= axlGetSelSet() ;获取当前选择的pins,生成all这个list,等效程序如下
;all=axlGetSelSet(axlAddSelectAll())
foreach( p all;遍历all这个list,即选择的所有pins
axlDehighlightObject(p t);先把所有的pins的颜色取消
when(p -> net -> name == "" axlHighlightObject(p t));当网络为空,则把颜色付给pins
)
axlClearSelSet();;清空选择
)) 本帖最后由 xieeyawen 于 2025-2-14 16:35 编辑
更新代码,可以取消已经高亮的nets,symbos,pins,避免干扰查看
axlCmdRegister( "hl_null_pin" 'hl_null_pin)
defun( hl_null_pin ()
let(
axlClearSelSet() ;清空选择
axlVisibleDesign( nil);设计不可见
axlVisibleLayer( "PIN/TOP" t);层可见,top面的pin
axlVisibleLayer( "PIN/BOTTOM" t) ;层可见,bottom面的pin
axlVisibleUpdate(t);更新可见
axlDehighlightObject( axlDBGetDesign() -> nets, t);取消网络颜色
axlDehighlightObject( axlDBGetDesign() -> symbols, t);取消器件颜色
axlDehighlightObject( axlDBGetDesign() -> pins, t) ;取消pin颜色,避免干扰
axlSetFindFilter( ?enabled list("noall" "pins") ?onButtons list("noall" "pins")) ;在find对话框里只选中pins
lista=axlGetSelSet(axlAddSelectAll())
foreach( p lista;遍历lista这个list表,即选择的所有pins
when(p -> net -> name == "" axlHighlightObject(p t));当网络为空,则把颜色赋给pins
)
axlClearSelSet();清空选择
)) axlVisibleDesign( nil);设计不可见nil,可见是t axlVisibleLayer("via class/" t);层的via可见 学习了,感谢 学习了,感谢 1 2 3 4
页:
[1]
2