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:
[ 69, 37, [ "ROAD", "PUBLIC_GREEN", "PARKING" ], [ 1, 2, 3 ], [ [ {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799365.902461736 ], [ 658766.0122260158, 6799365.902461736 ], [ 658766.0122260158, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799317.932689102 ], [ 658699.5623218721, 6799317.932689102 ], [ 658699.5623218721, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ], [ {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799365.360006733 ], [ 658756.5532574053, 6799365.360006733 ], [ 658756.5532574053, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799436.842571742 ], [ 658746.2107587596, 6799436.842571742 ], [ 658746.2107587596, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ], [ {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799318.022015003 ], [ 658676.1926276177, 6799318.022015003 ], [ 658676.1926276177, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799301.457762352 ], [ 658655.0479998119, 6799301.457762352 ], [ 658655.0479998119, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ] ] ]