Home > PCB_PrimitiveDimension > modify
PCB_PrimitiveDimension.modify() 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
modify(primitiveId: string | IPCB_PrimitiveDimension, property: {
dimensionType?: EPCB_PrimitiveDimensionType;
coordinateSet?: TPCB_PrimitiveDimensionCoordinateSet;
layer?: TPCB_LayersOfDimension;
unit?: ESYS_Unit.MILLIMETER | ESYS_Unit.CENTIMETER | ESYS_Unit.INCH | ESYS_Unit.MIL;
lineWidth?: number;
precision?: number;
primitiveLock?: boolean;
}): Promise<IPCB_PrimitiveDimension | undefined>;
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
Parameters
Parameter | Type | Description |
---|---|---|
primitiveId | string | IPCB_PrimitiveDimension | 图元 ID |
property | { dimensionType?: EPCB_PrimitiveDimensionType; coordinateSet?: TPCB_PrimitiveDimensionCoordinateSet; layer?: TPCB_LayersOfDimension; unit?: ESYS_Unit.MILLIMETER | ESYS_Unit.CENTIMETER | ESYS_Unit.INCH | ESYS_Unit.MIL; lineWidth?: number; precision?: number; primitiveLock?: boolean; } | 修改参数 |
Returns
Promise<IPCB_PrimitiveDimension | undefined>
尺寸标注图元对象