Schematic Diagram Content object

Overview

This topic discusses the JSON representation of Schematic Diagram Content objects.

A Schematic Diagram Content object is returned with the following properties:

  • name: The diagram name
  • extent: The diagram extent (envelope)
  • layers: An array of layer objects that compose the schematic diagram
  • rootNodes: Optional; An array of schematic feature identifiers (Long) that identify schematic root nodes in the diagram.
  • endNodes: Optional; An array of schematic feature identifiers (Long) that identify schematic end nodes in the diagram.
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
  "name": "<DiagramName>",
  "extent": <envelope>,
  "layers": [
  //First feature layer
    {
      "featureSet": {
        "displayFieldName": "",
        "fieldAliases": {
          "<field1>": "<aliasField1>",
          ...,
          "<fieldN>": "<aliasFieldN>"
        },
        "geometryType": "<esriGeometryPoint | esriGeometryPolyline | esriGeometryPolygon>",
        "spatialReference": <spatialReference>,
        "fields": [
          {
            "name": "<field1Name>",
            "type": <field1Type>,
            "alias": "<field1Alias>"
          },
          ...,
          {
            "name": "<fieldNName>",
            "type": <fieldNType>,
            "alias": "<fieldNAlias>"
          },
        ],
        "features": [
          <schFeature1>,
          ...,
          <schFeatureN>
        ]  //List of the schematic feature objects for this feature layer that are contained in the diagram
      },
      "featureClassID": <featureClassID1>, //This corresponds to the OBJECTID of the schematic feature class related to the layer
      "selectedIDs": [
        "<schFeature1_ID>",
        ...,
        "<schFeatureM_ID>"
      ] //List of the SCHEMATICTID for each schematic feature currently selected in this layer
    },
    //Next feature layer
    {
      ...
    }
  ],
  "rootNodes": [
    "<schFeature1_ID>",
    ...,
    "<schFeatureM_ID>"
  ], //List of the SCHEMATICTID of the root schematic feature nodes
  "endNodes": [
    "<schFeature1_ID>",
    ...,
    "<schFeatureK_ID>"
  ] //List of the SCHEMATICTID of the end schematic feature nodes
}

Layer object definition

Each layer item in the layers array corresponds to a schematic feature class associated with the diagram template on which the diagram is based.

All the schematic feature classes that are associated with the diagram template are detailed in this layers array, including those for which no schematic features are contained in the diagram.

Syntax
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"layers": [
  {
    "featureSet": {
      "displayFieldName": "",
      "fieldAliases": {
        "<field1>": "<aliasField1>",
        ...,
        "<fieldN>": "<aliasFieldN>"
      },
      "geometryType": "<esriGeometryPoint | esriGeometryPolyline | esriGeometryPolygon>",
      "spatialReference": <spatialReference>,
      "fields": [
        {
          "name": "<field1Name>",
          "type": <field1Type>,
          "alias": "<field1Alias>"
        },
        ...,
        {
          "name": "<fieldNName>",
          "type": <fieldNType>,
          "alias": "<fieldNAlias>"
        },
      ],
      "features": [
        <schFeature1>,
        ...,
        <schFeatureN>
      ]  //List of the schematic feature objects for this feature layer that are contained in the diagram
    },
    "featureClassID": <featureClassID1>, //This corresponds to the OBJECTID of the schematic feature class related to the layer
    "selectedIDs": [
      "<schFeature1_ID>",
      ...,
      "<schFeatureM_ID>"
    ] //List of the SCHEMATICTID for each schematic feature currently selected in this layer
  }
]
PropertyDetails

featureSet

The featureSet object related to the feature layer, formatted to include the following properties:

  • displayFieldName
  • fieldAliases: List of field aliases
    Use dark colors for code blocksCopy
    1
    {"<field1Name>": "<field1Alias>", ..., "<fieldNName>": "<fieldNAlias>"}
  • geometryType: Type of geometry for the schematic features in this layer
    • esriGeometryPoint
    • esriGeometryPolyline
    • esriGeometryPolygon
  • spatialReference: Spatial reference for the related schematic feature class
  • fields: Array of triplets that precises the name, type, and alias for each field
    Use dark colors for code blocksCopy
    1
    {"name": "<fieldName>", "type": <fieldType>, "alias": "<fieldAlias>"}
  • features: Array of schematic feature objects contained in the diagram for the feature layer. This array is empty when there are no schematic features for this layer contained in the schematic diagram.

featureClassID

ID of the schematic feature class related to the feature layer (Long).

selectedIDs

Array of the schematic feature identifiers (Long) that are currently selected in the diagram (optional).

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.