|
本帖最后由 Trunktren 于 2025-1-12 21:45 编辑
我想获得某一层中,所有走线的线宽,列成表格。
我目前的方法:
通过控制显示层,获取所有的线段得到线宽。但是每次运行我都感觉它很慢,要切换显示,还有其他的办法吗?
- itemLayer = “art03”
- axlVisibleDesign(nil);关闭所有的层
- activeLayerlist = list( strcat("ETCH/",itemLayer) strcat("VIA CLASS/",itemLayer) strcat("PIN/",itemLayer))
- foreach(activeLayer activeLayerlist
- axlVisibleLayer(activeLayer t);设置可见层
- );end foreach
- axlClearSelSet()
- ;axlSetFindFilter(?enabled '(noall Clines) ?onButtons '(noall Clines))
- axlSetFindFilter( ?enabled list("noall" "clinesegs")
- ?onButtons list("noall" "clinesegs"))
- axlAddSelectAll() ;选择可见层所有的线
- sel_Clines = axlGetSelSet()
- axlClearSelSet()
- foreach(clineseg sel_Clines
- clineWidth = clineseg -> width
- clineWidths = append1(clineWidths clineWidth)
- ;printf("%A\n",clineWidth)
- );end foreach
复制代码
|
|