菜单

31.建模类

下载

建模类

连线模型建模页

  • 接口描述:传入连线模型id,查看此连线模型建模页内纤芯建模数据。

  • URL地址:http://ip:port /wapi/v1/modeler/{linkTypeId}/link_type_id

  • 访问方法::Get

  • 请求参数:

    Path参数

参数名 类型 示例值 必填 说明
linkTypeId Long 27000000000204 线缆模型id
  • 响应示例:

{

"LinkTypeId": 27000000000204,

"model": "九格栅",

"description": null,

"background": "ljgedumk.svg",

"vendor": "101",

"nodeClassGroup": {

"id": 130005,

"name": "管线桥架",

"nodeClassGroupId": 0

},

"thickness": 1,

"topLeftX": 130.8109504132231,

"topLeftY": 0,

"_predefinedSublinks": [

{

"linkTypeId": 27000000000204,

"color": "#005caf",

"thickness": 135.5,

"name": "0",

"x": 234,

"subcomponentFields": {

"id": 52000000001288,

"predefinedSublinkId": 38000000002055,

"linkId": null,

"propertyId": 39000000000001,

"value": "0",

"offsetX": 64.969,

"offsetY": 62.911,

"fontSize": 10,

"color": "#000000",

"angle": 0,

"backgroundColor": null

},

"y": 106.710396,

"id": 38000000002055

}

],

"_predefinedLinks": []

}

节点模型建模页

  • 接口描述:传入节点模型id,查看此节点模型建模页内端口、板卡或容器建模数据。

  • URL地址:http://ip:port /wapi/v1 /modeler/{nodeTypeId}/node_type_id

  • 访问方法::Get

  • 请求参数:

    Path参数

参数名 类型 示例值 必填 说明
nodeTypeId Long 26000000132418 节点模型id
  • 响应示例:

{

"background": "fdpkdogd.svg",

"_ports": [

{

"refPointY": 0.5,

"hidden": false,

"refPointX": 0.5,

"subcomponentFields": {

"id": 1155524,

"portId": 48000000320939,

"slotId": null,

"propertyId": 28000000240137,

"value": "1",

"offsetX": 0,

"offsetY": 0,

"fontSize": 10,

"color": "#000000",

"angle": 0,

"state": false,

"bold": false,

"italic": false,

"underline": false,

"fontFamily": null,

"backgroundColor": null,

"refPort": false,

"align": false,

"justification": true

},

"nodeTypeId": 26000000132418,

"refX": 46.880627,

"refAngle": 0,

"refY": 136.78242,

"refHeight": 56.625443373078156,

"refSubcomponentFields": {

"id": 1155525,

"portId": 48000000320939,

"slotId": null,

"propertyId": 28000000240137,

"value": null,

"offsetX": 0,

"offsetY": 0,

"fontSize": 10,

"color": "#000000",

"angle": 0,

"state": false,

"bold": null,

"italic": null,

"underline": null,

"fontFamily": null,

"backgroundColor": null,

"refPort": true,

"align": false,

"justification": true

},

"refWidth": 62.50750045776367,

"name": "1",

"x": 62.5075,

"width": 31.253750228881827,

"y": 267.574,

"angle": 0,

"id": 48000000320939,

"anchorPointY": 0.5,

"height": 32.213384833451414,

"anchorPointX": 0.5

}

],

"_slots": [

{

"name": "3",

"x": 667.913,

"width": 270.81727893165885,

"y": 257.574,

"angle": 0,

"subcomponentFields": {

"id": 1155523,

"portId": null,

"slotId": 49000000029603,

"propertyId": 28000000003729,

"value": "3",

"offsetX": 0,

"offsetY": 0,

"fontSize": 10,

"color": "#000000",

"angle": 0,

"state": false,

"bold": false,

"italic": false,

"underline": false,

"fontFamily": null,

"backgroundColor": null,

"refPort": false,

"align": false,

"justification": true

},

"id": 49000000029603,

"nodeTypeId": 26000000132418,

"height": 52.87661199051422

}

],

"_containerChildren": [],

"_devicesLinks": [],

"topLeftX": null,

"topLeftY": null

}

应用到实例

  • 接口描述:传入模型id,将模型当前建模情况应用到实例内,改变实例内的端口或板卡或纤芯的大小和位置。

  • URL地址:http://ip:port /wapi/v1/modeler/apply_instance/{nodeTypeId}

  • 访问方法::Put

  • 请求参数:

    Path参数

参数名 类型 示例值 必填 说明
nodeTypeId Long 26000000132418 模型id
  • 响应示例:

{

"code": 200

}

节点建模页属性栏

  • 接口描述:传入节点模型id,获取到节点模型建模页属性栏数据。

  • URL地址:http://ip:port/wapi/v1/modelerProperties/{nodeTypeId}/node_type_id

  • 访问方法::Get

  • 请求参数:

    Path参数

参数名 类型 示例值 必填 说明
nodeTypeId Long 26000000132418 节点模型id
  • 响应示例:

{

"vendor": "KJB",

"nodeTypeId": 26000000132418,

"model": "光纤盒子 clone",

"description": null,

"image": "zcnqhnmk.png",

"image2": "mt8exjdz.png",

"background": "fdpkdogd.svg",

"typeGroup": 7,

"width": 482.6,

"height": 44.45,

"deep": 10,

"nodeClassGroup": "布线",

"nodeClass": "模块化配线架",

"weight": "0"

}

连线建模页属性栏

  • 接口描述:传入连线模型id,获取到连线模型建模页属性栏数据。

  • URL地址:http://ip:port/wapi/v1/modelerProperties/{linkTypeId}/link_type_id

  • 访问方法::Get

  • 请求参数:

    Path参数

参数名 类型 示例值 必填 说明
linkTypeId Long 27000000000204 连线模型id
  • 响应示例:

{

"LinkTypeId": 27000000000204,

"model": "九格栅",

"description": null,

"background": "ljgedumk.svg",

"vendor": "101",

"nodeClassGroup": "管线桥架",

"thickness": 1

}

最近修改: 2025-02-27