|
在 PADS 下,最后的文字排放整理比较麻烦,因为走线和铜箔的绘制优先权高于文字,很难选中,也看不清文字安放位置的效果。
手动设置显示选项很麻烦,不仅要来回拖菜单,还容易搞错。
这三个小脚本就是为了解决这个问题,快速而简洁。适用于 PADS 9.5,其他版本请自己试一下。
脚本1,显示 Top 层和与其关联的那些层,并关闭走线与铜箔的显示。Bottom 层与其相关的层关闭显示。
- Sub Main
- Set doc = ActiveDocument
- Set l1 = doc.Layers(1)
- Set l2 = doc.Layers(2)
- l1.Visible = False
- l2.Visible = False
- doc.Layers(22).Visible = False
- doc.Layers(28).Visible = False
- doc.Layers(29).Visible = False
- doc.Layers(30).Visible = False
- doc.Layers(21).Visible = True
- doc.Layers(23).Visible = True
- doc.Layers(26).Visible = True
- doc.Layers(27).Visible = True
- doc.SetVisibility(ppcbDesignObjectTrace , False)
- doc.SetVisibility(ppcbDesignObjectCopper , False)
- l1.Visible = True
- doc.ActiveLayer = 1
- End Sub
复制代码
脚本2,显示 Bottom 层和与其关联的那些层,并关闭走线与铜箔的显示。Top 层与其相关的层关闭显示。
- Sub Main
- Set doc = ActiveDocument
- Set l1 = doc.Layers(1)
- Set l2 = doc.Layers(2)
-
- l1.Visible = False
- doc.Layers(21).Visible = False
- doc.Layers(23).Visible = False
- doc.Layers(26).Visible = False
- doc.Layers(27).Visible = False
- l2.Visible = False
- doc.SetVisibility(ppcbDesignObjectTrace , False)
- doc.SetVisibility(ppcbDesignObjectCopper , False)
- doc.Layers(22).Visible = True
- doc.Layers(28).Visible = True
- doc.Layers(29).Visible = True
- doc.Layers(30).Visible = True
- l2.Visible = True
- doc.ActiveLayer = 2
-
- End Sub
复制代码
脚本3,恢复正常显示。
- Sub Main
- Set doc = ActiveDocument
- Set l1 = doc.Layers(1)
- Set l2 = doc.Layers(2)
- l1.Visible = False
- l2.Visible = False
- doc.Layers(22).Visible = True
- doc.Layers(28).Visible = True
- doc.Layers(29).Visible = True
- doc.Layers(30).Visible = True
- doc.Layers(21).Visible = True
- doc.Layers(23).Visible = True
- doc.Layers(26).Visible = True
- doc.Layers(27).Visible = True
- doc.SetVisibility(ppcbDesignObjectTrace , True)
- doc.SetVisibility(ppcbDesignObjectCopper , True)
- l1.Visible = True
- l2.Visible = True
- End Sub
复制代码
脚本的使用,在菜单 “工具” -> “基本脚本” 中,自己稍微摸索一下即可。
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|