Schematic Diagram Templates

URL:
https://<root>/<serviceName>/MapServer/exts/SchematicServer/templates/
Methods:
POST
Child Resources:
Schematic Diagram Template
Version Introduced:
10.1

Description

The templates represents all the schematic diagram templates related to the published schematic layers under a schematic service. It is returned as an array of Schematic Diagram Template resources by the REST API.

Request parameters

ParameterDetails

f

The response format. The default response format is html .

Values: html | json

Example usage

Example 1: The schematic diagram templates under the S1_Schematics public sample Schematics service

Use dark colors for code blocksCopy
1
https://myserver.esri.com/arcgis/rest/services/S1_Schematics/MapServer/exts/SchematicsServer/templates

Example 2: The schematic diagram templates under the S2_InternalPlants public sample Schematics service

Use dark colors for code blocksCopy
1
https://myserver.esri.com/arcgis/rest/services/S2_InternalPlants/MapServer/exts/SchematicsServer/templates

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
{
  "templates": [
    <diagramTemplate1—[see Schematic Diagram Template—JSON Syntax](/schematic-diagram-template/#json-response-syntax)>,
    ...,
    <diagramTemplateN—[see Schematic Diagram Template—JSON Syntax](/schematic-diagram-template/#json-response-syntax)>
  ]
}

Learn about Schematic Diagram Template—JSON Syntax

JSON Response example

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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
  "templates": [
    //The first schematic diagram template, OSP, under the sample schematic service
    {
      "name" : "OSP",
      "id" : 1,
      "objectID" : 2896,
      "canGenerate" : true,
      "builderType" : "Standard Builder",
      "algorithms" : [
        {
           "id" : 0,
           "name" : "Bypass Nodes"
        },
        {
           "id" : 2,
           "name" : "Geo - Angle Directed",
           "parameters" : [
             {
               "name" : "NumberOfIterations",
               "type" : "Long",
               "value" : 1
             },
             {
                "name" : "NumberOfDirections",
                "type" : "Long",
                "value" : 8
             }
           ]
        },
        {
           "id" : 3,
           "name" : "Geo - Compression",
           "parameters" : [
             {
               "name" : "Containers",
               "type" : "Boolean",
               "value" : true
             },
             {
               "name" : "KeepInsideVertices",
               "type" : "Boolean",
               "value" : true
             },
             {
               "name" : "KeepOutsideVertices",
               "type" : "Boolean",
               "value" : false
             },
             {
               "name" : "MaximumDistanceForGrouping",
               "type" : "Double",
               "value" : 0
             }
           ]
        },
        {
           "id" : 4,
           "name" : "Geo - Force Directed",
           "parameters" : [
             {
               "name" : "NumberOfIterations",
               "type" : "Long",
               "value" : 20
             },
             {
               "name" : "RepelFactor",
               "type" : "Double",
               "value" : 1
             },
             {
               "name" : "DegreeOfFreedom",
               "type" : "Long",
               "value" : 1
             }
			]
		}
      ]
    },
    //The second schematic diagram template, ISP_Diagrams, under the sample schematic service
    {
      "name" : "ISP_Diagrams",
      "id" : 1,
      "objectID" : 888,
      "canGenerate" : true,
      "builderType" : "Standard Builder",
      "algorithms" : [
        ...
      ]
    }
  ]
}

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