Home > IPCB_PrimitivePoured > getState_PrimitiveType
IPCB_PrimitivePoured.getState_PrimitiveType() method
获取属性状态:图元类型
签名
typescript
function getState_PrimitiveType(): EPCB_PrimitiveType;1
返回值
图元类型
示例
javascript
// 1. 获取画布上已有的覆铜填充图元
const pouredList = await eda.pcb_PrimitivePoured.getAll();
if (!pouredList || pouredList.length === 0) {
console.log('说明:PCB 上没有覆铜填充,请先手动绘制覆铜并重建(设计 → 覆铜)');
return;
}
const poured = pouredList[0];
// 2. 读取图元类型
const primitiveType = poured.getState_PrimitiveType();
console.log('primitiveType:', primitiveType);1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11