Skip to content

Added support for importing Altium Designer CSV. - #15

Open
Water-zi wants to merge 1 commit into
dukelec:masterfrom
Water-zi:AltiumCSVImport
Open

Added support for importing Altium Designer CSV.#15
Water-zi wants to merge 1 commit into
dukelec:masterfrom
Water-zi:AltiumCSVImport

Conversation

@Water-zi

Copy link
Copy Markdown

This code provides an interface for directly importing CSV files from Altium Designer, reorganizing and rearranging the CSV, and then invoking the original interface for the import operation. However, there is a question regarding the documentation: it mentions the need to take the inverse of some coordinates, specifically the coordinates of the fiducial marks. However, in actual testing, it was found that the original interface automatically takes the inverse of the y-axis coordinates during the CSV import. Modifying the original CSV document or taking the inverse when copying the coordinates of the fiducial marks can lead to incorrect positioning of the components during operation. On the contrary, if no modifications are made to the output CSV data and the coordinates from the component list are directly copied into the Fiducial PCB column, the resulting operational position aligns with the expectations. Further testing may be required for this aspect, but at least on my computer with AD22.0.2 (Build 36), this is the observed behavior.

这些代码提供了一个直接导入Altium Designer的CSV文件的接口,对CSV进行重新组织和排列,然后调用原接口进行导入操作。但对于文档有一点疑问:文档中提到需要将一些坐标取反,对标记点的坐标取反。但是在实际测试中发现,原接口在导入CSV时会对y轴坐标取反,在此基础上,如果修改原CSV文档或在抄写标记点坐标时取反,都将导致设备运行的位置出错。相反,如果不对输出的CSV数据做任何修改,直接将component list中的坐标抄写到Fiducial pcb一栏中,得到的运行结果是符合预期的。对于这部分内容,可能还需要进行更多的测试,但至少在我的电脑上是这样的。我使用的是AD22.0.2(Build36)

This code provides an interface for directly importing CSV files from Altium Designer, reorganizing and rearranging the CSV, and then invoking the original interface for the import operation.
However, there is a question regarding the documentation: it mentions the need to take the inverse of some coordinates, specifically the coordinates of the fiducial marks. However, in actual testing, it was found that the original interface automatically takes the inverse of the y-axis coordinates during the CSV import. Modifying the original CSV document or taking the inverse when copying the coordinates of the fiducial marks can lead to incorrect positioning of the components during operation. On the contrary, if no modifications are made to the output CSV data and the coordinates from the component list are directly copied into the Fiducial PCB column, the resulting operational position aligns with the expectations. Further testing may be required for this aspect, but at least on my computer with AD22.0.2 (Build 36), this is the observed behavior.

这些代码提供了一个直接导入Altium Designer的CSV文件的接口,对CSV进行重新组织和排列,然后调用原接口进行导入操作。但对于文档有一点疑问:文档中提到需要将一些坐标取反,对标记点的坐标取反。但是在实际测试中发现,原接口在导入CSV时会对y轴坐标取反,在此基础上,如果修改原CSV文档或在抄写标记点坐标时取反,都将导致设备运行的位置出错。相反,如果不对输出的CSV数据做任何修改,直接将component list中的坐标抄写到Fiducial pcb一栏中,得到的运行结果是符合预期的。对于这部分内容,可能还需要进行更多的测试,但至少在我的电脑上是这样的。我使用的是AD22.0.2(Build36)
@dukelec
dukelec force-pushed the master branch 3 times, most recently from 2b4a393 to e4dc5aa Compare March 18, 2024 09:21
@dukelec
dukelec force-pushed the master branch 2 times, most recently from 1fc7490 to 2e31985 Compare May 11, 2024 07:55
@dukelec
dukelec force-pushed the master branch 3 times, most recently from a9a9403 to 1ccec8a Compare November 15, 2024 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant