在脚本里添加
语句 :
Const Columns = Array("RefDes", "Description","PartDecal", "Pins", "Layer", "Orient.", "X", "Y", "SMD", "Glued")
和
OutCell AttrVal(part, "Description")
子程序:
Function AttrVal (obj As Object, nm As String) AttrVal = IIf(obj.Attributes(nm) Is Nothing, "", obj.Attributes(nm))End Function
最后运行脚本,导出来的元器件坐标文件里就有了元器件的参数规格这一项了。这样贴片厂在调机对参数时就方便了很多。