Api session event editor parametric save as measure
API Event to Save As Measure
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (PARAMETRIC_DESIGN Integer ID) | Parametric Design | |
| 1 | REQUIRED | (STAKEHOLDER Integer ID) | Stakeholder | |
| 2 | REQUIRED | (FunctionType or multiple values in array [a, b, c]) | FunctionType[] | |
| 3 | REQUIRED | (Integer number or multiple values in array [1, 2, 3]) | Integer[] | |
| 4 | REQUIRED | (MultiPolygon or multiple values in array [a, b, c]) | MultiPolygon[][] |
Response Codes
| Response Code: | Description |
|---|---|
| 200 | Integer (Integer) |
| 300-600 | Codes Overview |
Example POST
Example POST: https://engine.tygron.com/api/session/event/editorparametric/save_as_measure/?f=JSON&token=API_TOKEN
with content:
[ 45, 42, [ "PARKING", "BUILDING", "WATER" ], [ 1, 2, 3 ], [ [ {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799415.339104977 ], [ 658738.5074812665, 6799415.339104977 ], [ 658738.5074812665, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799421.62447795 ], [ 658636.8089514781, 6799421.62447795 ], [ 658636.8089514781, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ], [ {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799461.375108682 ], [ 658733.1462080207, 6799461.375108682 ], [ 658733.1462080207, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799412.677161669 ], [ 658671.6547913715, 6799412.677161669 ], [ 658671.6547913715, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ], [ {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799445.301050754 ], [ 658664.4566202037, 6799445.301050754 ], [ 658664.4566202037, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799342.328440235 ], [ 658760.1344774922, 6799342.328440235 ], [ 658760.1344774922, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ] ] ]