# benchmark
# Module name: Datum
# baseline
Interface name: createLine
Input parameters:
parameter name | Parameter meaning | type | must | Parameter value description |
---|---|---|---|---|
datumLineName | The identifier of the feature | string | Yes | Called when editing state |
referenceType | Reference type | Integer | Yes | 0 is the edge 1 is two points 2 为特征面 3 为直线 4 为两相交平面 |
referenceEntities | 参考对象 | list | 是 |
返回值: NULL
# 基准面
- 通过偏移距离创建基准面
接口名称: createPlaneByDistance
输入参数:
参数名称 | 参数含义 | 类型 | 必须 | 参数值说明 |
---|---|---|---|---|
datumPlaneName | 特征的标识名 | 字符串 | 是 | 编辑状态时调用 |
planeId | 参考面的ID | 整型 | 是 | 基准面的id |
faceId | 参考面的ID | 整型 | 是 | 面的id |
invertNormal | 是否翻转法向 | 整型 | 否 | 0 不翻转 默认 1 翻转 |
paralDis | 平行偏移距离 | 浮点型 | 是 |
返回值: NULL
- 通过平面和平面外一点创建基准面
接口名称: createPlaneByPlanePoint
输入参数:
参数名称 | 参数含义 | 类型 | 必须 | 参数值说明 |
---|---|---|---|---|
datumPlaneName | 特征的标识名 | 字符串 | 是 | 编辑状态时调用 |
planeId | 参考面的ID | 整型 | 是 | 基准面的id |
faceId | 参考面的ID | 整型 | 是 | 面的id |
invertNormal | 是否翻转法向 | 整型 | 否 | 0 不翻转 默认 1 翻转 |
paralPnt | 平行偏移到点 | 点Point | 是 |
返回值: NULL
- 通过平面中线和角度创建基准面
接口名称: createPlaneByPlaneAngle
输入参数:
参数名称 | 参数含义 | 类型 | 必须 | 参数值说明 |
---|---|---|---|---|
datumPlaneName | 字符串 | 字符串 | 是 | 编辑状态时调用 |
planeId | 参考面的ID | 整型 | 是 | 基准面的id |
faceId | 参考面的ID | 整型 | 是 | 面的id |
invertNormal | 整型 | 整型 | 否 | 0 不翻转 默认 1 翻转 |
additionalAxis | 轴 Axis | 轴 Axis | 是 | |
axisAngle | 浮点型 | 浮点型 | 是 | |
reverse | 是否反向 | 整型 | 否 | 0不反向 默认 1反向 |
返回值: NULL
- 通过三点创建基准面
接口名称: createPlaneByThreePoints
输入参数:
参数名称 | 参数含义 | 类型 | 必须 | 参数值说明 |
---|---|---|---|---|
datumPlaneName | 特征的标识名 | 字符串 | 是 | 编辑状态时调用 |
threePnts | 通过三点的点坐标 | Point List | 是 | |
invertNormal | 是否翻转法向 | 整型 | 否 | 0 不翻转 默认 1 翻转 |
返回值: NULL
- 通过点法向创建基准面
接口名称: createPlaneByPointNormal
输入参数:
参数名称 | 参数含义 | 类型 | 必须 | 参数值说明 |
---|---|---|---|---|
datumPlaneName | 特征的标识名 | 字符串 | 是 | 编辑状态时调用 |
planeAxis | 轴 | 轴 Axis | 是 | |
planePnt | 平面上一点 | 点 Point | 是 | |
invertNormal | 是否翻转法向 | 整型 | 否 | 0不翻转 默认 1翻转 |
返回值: NULL
- 通过线角度创建基准面
接口名称: createPlaneByLineAngle 输入参数:
参数名称 | 参数含义 | 类型 | 必须 | 参数值说明 |
---|---|---|---|---|
datumPlaneName | 特征的标识名 | 字符串 | 是 | 编辑状态时调用 |
planeAxis | 轴 | 轴 Axis | 是 | |
planePnt | 平面上一点 | 点 Point | 是 | |
invertNormal | 是否翻转法向 | 整型 | 否 | 0 不翻转 默认 1 翻转 |
axisAngle | 与轴形成的角度 | 浮点型Lis | 是 | |
reverse | 是否反向 | 整型 | 否 | 0 不反向 默认 1 反向 |
返回值: NULL