Home > PCB_PrimitiveDimension > create
PCB_PrimitiveDimension.create() method
创建尺寸标注
签名
typescript
create(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
参数名
参数 | 类型 | 描述 |
---|---|---|
dimensionType | 尺寸标注类型 | |
coordinateSet | 尺寸标注坐标集 | |
layer | (Optional) 层 | |
unit | ESYS_Unit.MILLIMETER | ESYS_Unit.CENTIMETER | ESYS_Unit.INCH | ESYS_Unit.MIL | (Optional) 单位 |
lineWidth | number | (Optional) 线宽 |
precision | number | (Optional) 精度,取值范围 |
primitiveLock | boolean | (Optional) 是否锁定 |
返回值
Promise<IPCB_PrimitiveDimension | undefined>
尺寸标注图元对象