# PCB\_PrimitivePoured class

PCB &amp; 封装 / 覆铜填充图元类

## Signature

```typescript
declare class PCB_PrimitivePoured implements IPCB_PrimitiveAPI 
```
**Implements:** [IPCB\_PrimitiveAPI](../interfaces/IPCB_PrimitiveAPI.md)

## Methods

<table><thead><tr><th>

Method


</th><th>

Modifiers


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[delete(primitiveIds)](./PCB_PrimitivePoured.md)


</td><td>


</td><td>

**_(BETA)_** 删除覆铜填充


</td></tr>
<tr><td>

[get(primitiveIds)](./PCB_PrimitivePoured.md)


</td><td>


</td><td>

**_(BETA)_** 获取覆铜填充


</td></tr>
<tr><td>

[get(primitiveIds)](./PCB_PrimitivePoured.md)


</td><td>


</td><td>

**_(BETA)_** 获取覆铜填充


</td></tr>
<tr><td>

[getAll()](./PCB_PrimitivePoured.md)


</td><td>


</td><td>

**_(BETA)_** 获取所有覆铜填充图元


</td></tr>
<tr><td>

[getAllPrimitiveId()](./PCB_PrimitivePoured.md)


</td><td>


</td><td>

**_(BETA)_** 获取所有覆铜填充的图元 ID


</td></tr>
</tbody></table>

---

## 方法详情

### delete

# PCB\_PrimitivePoured.delete() method

> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

删除覆铜填充

## Signature

```typescript
delete(primitiveIds: string | IPCB_PrimitivePoured | Array<string> | Array<IPCB_PrimitivePoured>): Promise<boolean>;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

primitiveIds


</td><td>

string \| [IPCB\_PrimitivePoured](./IPCB_PrimitivePoured.md) \| Array&lt;string&gt; \| Array&lt;[IPCB\_PrimitivePoured](./IPCB_PrimitivePoured.md)<!-- -->&gt;


</td><td>

覆铜填充的图元 ID 或覆铜填充图元对象


</td></tr>
</tbody></table>



## Returns

Promise&lt;boolean&gt;

删除操作是否成功

### get

# PCB\_PrimitivePoured.get() method

> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

获取覆铜填充

## Signature

```typescript
get(primitiveIds: string): Promise<IPCB_PrimitivePoured | undefined>;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

primitiveIds


</td><td>

string


</td><td>

覆铜填充的图元 ID，可以为字符串或字符串数组，如若为数组，则返回的也是数组


</td></tr>
</tbody></table>



## Returns

Promise&lt;[IPCB\_PrimitivePoured](./IPCB_PrimitivePoured.md) \| undefined&gt;

覆铜填充图元对象，`undefined` 表示获取失败

### get_1

# PCB\_PrimitivePoured.get() method

> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

获取覆铜填充

## Signature

```typescript
get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitivePoured>>;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

primitiveIds


</td><td>

Array&lt;string&gt;


</td><td>

覆铜填充的图元 ID，可以为字符串或字符串数组，如若为数组，则返回的也是数组


</td></tr>
</tbody></table>



## Returns

Promise&lt;Array&lt;[IPCB\_PrimitivePoured](./IPCB_PrimitivePoured.md)<!-- -->&gt;&gt;

覆铜填充图元对象，空数组表示获取失败

## Remarks

如若传入多个图元 ID，任意图元 ID 未匹配到不影响其它图元的返回，即可能返回少于传入的图元 ID 数量的图元对象

### getall

# PCB\_PrimitivePoured.getAll() method

> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

获取所有覆铜填充图元

## Signature

```typescript
getAll(): Promise<Array<IPCB_PrimitivePoured>>;
```


## Returns

Promise&lt;Array&lt;[IPCB\_PrimitivePoured](./IPCB_PrimitivePoured.md)<!-- -->&gt;&gt;

覆铜填充图元对象数组

### getallprimitiveid

# PCB\_PrimitivePoured.getAllPrimitiveId() method

> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

获取所有覆铜填充的图元 ID

## Signature

```typescript
getAllPrimitiveId(): Promise<Array<string>>;
```


## Returns

Promise&lt;Array&lt;string&gt;&gt;

覆铜填充的图元 ID 数组
