Home > PCB_PrimitiveRegion > create
PCB_PrimitiveRegion.create() 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
create(layer: TPCB_LayersOfRegion, complexPolygon: IPCB_Polygon, ruleType?: Array<EPCB_PrimitiveRegionRuleType>, regionName?: string, lineWidth?: number, primitiveLock?: boolean): Promise<IPCB_PrimitiveRegion | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
layer | 层 | |
complexPolygon | 复杂多边形对象 | |
ruleType | Array<EPCB_PrimitiveRegionRuleType> | (Optional) 区域规则类型 |
regionName | string | (Optional) |
lineWidth | number | (Optional) 线宽 |
primitiveLock | boolean | (Optional) 是否锁定 |
Returns
Promise<IPCB_PrimitiveRegion | undefined>
区域图元对象