Added support for importing Altium Designer CSV. #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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)