Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

类型标记错误? #4

Open
itldg opened this issue Sep 21, 2024 · 7 comments
Open

类型标记错误? #4

itldg opened this issue Sep 21, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@itldg
Copy link

itldg commented Sep 21, 2024

https://prodocs.lceda.cn/cn/api/reference/pro-api.ipcb_layeritem.html

type |   | EPCB_LayerType | 类型

image

实际获取到的是字符串类型

image

另外图层属性乱码,文件中还有许多这种乱码的存在

image

6fbf01c37a479c2d8f7dcdf249c43a9

6fbf01c37a479c2d8f7dcdf249c43a9

d9e640c54a3f260712297a7d7325e47

@yanranxiaoxi yanranxiaoxi self-assigned this Sep 21, 2024
@yanranxiaoxi yanranxiaoxi added bug Something isn't working good first issue Good for newcomers labels Sep 21, 2024
@itldg
Copy link
Author

itldg commented Sep 21, 2024

getSelectedPrimitives 提示需要用 SCH_SelectControl.getAllSelectedPrimitives

SCH_SelectControl.getAllSelectedPrimitives 此版本被排除

image

@yanranxiaoxi
Copy link
Collaborator

getSelectedPrimitives 提示需要用 SCH_SelectControl.getAllSelectedPrimitives

SCH_SelectControl.getAllSelectedPrimitives 此版本被排除

image

该接口存在 BUG 正在修复中,所以当前暂未提供

@yanranxiaoxi
Copy link
Collaborator

乱码问题已定位,下一次版本推送将解决

@itldg
Copy link
Author

itldg commented Sep 25, 2024

短期内,API 有望更新不,比如增加获取矩形,圆形等

@yanranxiaoxi
Copy link
Collaborator

短期内,API 有望更新不,比如增加获取矩形,圆形等

圆形和矩形均可以使用折线图元绘制,只需为其传入包含矩形和圆形的 IPCB_Polygon

@itldg
Copy link
Author

itldg commented Oct 15, 2024

获取矩形,圆形呢?PCB上已经有了,想自己做绑定关系,选择一个矩形,选择一个元件,设置偏移和尺寸,然后修改矩形的宽高和坐标

@yanranxiaoxi
Copy link
Collaborator

获取矩形,圆形呢?PCB上已经有了,想自己做绑定关系,选择一个矩形,选择一个元件,设置偏移和尺寸,然后修改矩形的宽高和坐标

矩形和圆形均在 IPCB_Polygon 内有数据格式定义

@yanranxiaoxi yanranxiaoxi removed the good first issue Good for newcomers label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants