在 Altium Designer PCB 环境下单击Y键可以调用 Filter(过滤器)。如图
下面介绍如何向Y快捷键内添加内容,例选中过孔。
步骤一:单击DXP---单击Customizing PCB Editor
步骤二:单击Filter---双击任意一个Favorite Filter进行编辑
步骤三:在Parameters中键入自己想要筛选的内容,例筛选过孔并选择过孔(expr=IsVia|Apply=True|select=True)--在Caption上键入名称,例选中过孔--点击ok
最后返回到pcb界面内,单击Y键就可以显示这个选项了。
下面在分享一下其他常用筛选的表达式
1,选未塞孔的过孔---expr=isVia And ((not SolderMaskTentingTop)or(not SolderMaskTentingBottom))|mask=True|apply=True |select=True
2,只操作顶层元件---expr=IsComponent and OnTopLayer|mask=True|apply=True
3,只操作过孔---expr=IsVia|mask=True|apply=True
4,只操作电气走线---expr=IsTrack and IsElectrical|mask=True|apply=True
5,只操作底层走线---expr=IsTrack and OnBottomLayer|mask=True|apply=True
6,只操作顶层走线---expr=IsTrack and OnTopLayer|mask=True|apply=True
7,元件(封装为C*)是否垂直检查---expr=IsComponent And HasFootprint( 'C*' ) And ( Not (Rotation = 90)) And ( Not (Rotation = 270))|mask=True|apply=True
8,位号方向是否只有0度90度---expr=IsText And(( (OnTopSilkscreen And (( Not (Rotation = 0) )And ( Not (Rotation = 360) )And(Not (Rotation = 90) ) Or Mirror ))) Or (OnBottomSilkscreen And (( Not (Rotation = 0) )And ( Not (Rotation = 360) )And ( Not (Rotation = 270))Or(Not Mirror))))|mask=True|apply=True
9,器件是否LockPrimitives---expr=IsComponent And ( Not LockPrimitives)|mask=True|apply=True
10,选中无网络的过孔---expr=IsVia and (not(InNet('*')))|mask=True|apply=True|select=True
11,选中所有覆铜---expr=IsPoly|mask=True|apply=True|select=True
12,选中room---expr=Isroom|mask=True|apply=True|select=True
最后分享一下表达式中的语法的含义
expr---表达式
and---并且
or---或者
mask=True---进行掩码操作,就是高亮
select=True---进行选中操作
apply=True---应用确认