当前位置:   article > 正文

PADS输出坐标文件[适配嘉立创贴片]_pads导出坐标文件

pads导出坐标文件

PADS输出坐标文件

1.打开导出坐标文件的选项:

2.配置导出设置,这里最后做的是excel的文件,顶层配置如下做图,底层配置如下右图:

3.各自点击运行后提示如下左图,到相应的目录看到的文件如下右图:

4.把生成的".BP"格式的文件改成“.xls”格式即可,最后修改如下:

5.《DYNPROSB.xls》和《DYNPROST.xls》文件的大体内容如下:

    这两个确实就是坐标文件,把这两个文件拷贝走就可以了!
 

适配嘉立创贴片

上面生成的坐标文件不能够适配嘉立创的贴片下单平台,会报这样的错误:

生成的坐标文件如下:

这里修改如下PADS的脚本如下:

主要是修改列的名称和增加上mm的单位

修改后的脚本如下:

  1. ' Sample 17: Excel Part List Report.BAS
  2. '
  3. 'This is a completely revised version of the same file renamed to: old_X-Y Part Location Report.bas
  4. 'This script has been generated by PowerPCB's VB Script Wizard on 8/23/2007 3:19:25 PM
  5. 'It will create reports in Microsoft Excel Format.
  6. 'You can use the following code as a skeleton for your own VB scripts
  7. 'Array of column names. You can modify it to rename columns
  8. Const Columns = Array("PartType", "RefDes", "Footprint", "Pins", "Layer", "Rotation", "Mid X", "Mid Y", "SMD", "Glued")
  9. Sub Main
  10. tempFile = DefaultFilePath & "\temp.txt"
  11. Open tempFile For Output As #1
  12. 'Output table header
  13. For i = 0 to UBound(Columns)
  14. OutCell Columns(i)
  15. Next
  16. Print #1
  17. 'Output table rows
  18. For Each part in ActiveDocument.Components
  19. OutCell part.PartType
  20. OutCell part.Name
  21. OutCell part.Decal
  22. OutCell part.Pins.Count
  23. OutCell ActiveDocument.LayerName(part.layer)
  24. OutCell part.orientation
  25. OutCell Format(part.PositionX, "0.000mm")
  26. OutCell Format(part.PositionY, "0.000mm")
  27. OutCell Format(part.IsSMD, "Yes/No")
  28. OutCell Format(part.Glued, "Yes/No")
  29. Print #1
  30. Next part
  31. Close #1
  32. ExportToExcel
  33. End Sub
  34. Sub ExportToExcel
  35. FillClipboard
  36. Dim xl As Object
  37. On Error Resume Next
  38. Set xl = GetObject(,"Excel.Application")
  39. On Error GoTo ExcelError ' Enable error trapping.
  40. If xl Is Nothing Then
  41. Set xl = CreateObject("Excel.Application")
  42. End If
  43. xl.Visible = True
  44. xl.Workbooks.Add
  45. xl.Range("A:C").NumberFormat = "@"
  46. xl.Range("D1:J1").NumberFormat = "@"
  47. xl.ActiveSheet.Paste
  48. xl.Range("A1:J1").Font.Bold = True
  49. xl.Range("A1:J1").NumberFormat = "@"
  50. xl.ActiveSheet.UsedRange.Columns.AutoFit
  51. xl.Range("A1").Select
  52. On Error GoTo 0 ' Disable error trapping.
  53. Exit Sub
  54. ExcelError:
  55. MsgBox Err.Description, vbExclamation, "Error Running Excel"
  56. On Error GoTo 0 ' Disable error trapping.
  57. Exit Sub
  58. End Sub
  59. Sub OutCell (txt As String)
  60. Print #1, txt; vbTab;
  61. End Sub
  62. Sub FillClipboard
  63. ' Load whole file to string variable
  64. tempFile = DefaultFilePath & "\temp.txt"
  65. Open tempFile For Input As #1
  66. L = LOF(1)
  67. AllData$ = Input$(L,1)
  68. Close #1
  69. 'Copy whole data to clipboard
  70. Clipboard AllData$
  71. Kill tempFile
  72. End Sub

这时候生成的坐标格式如下:

这时候就可以被嘉立创下单平台识别了!

嘉立创下单的时候选择这个模式:

本文摘录于:【教程】PADS如何导出SMT贴片机用的坐标文件 - 立创社区 (szlcsc.com)只是做学习备份之用,绝无抄袭之意,有疑惑请联系本人!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/1007686
推荐阅读
相关标签
  

闽ICP备14008679号