Home > PCB_PrimitiveDimension > modify
PCB_PrimitiveDimension.modify() method
此 API 当前处于 BETA 预览状态,希望得到开发者的反馈。它的任何功能都可能在接下来的开发进程中被修改,请不要将它用于任何正式环境。
修改尺寸标注
签名
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
参数名
参数 | 类型 | 描述 |
---|---|---|
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; } | 修改参数 |
返回值
Promise<IPCB_PrimitiveDimension | undefined>
尺寸标注图元对象