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 Designs | |
| 1 | REQUIRED | (STAKEHOLDER Integer ID) | Stakeholders | |
| 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=HTML&token=API_TOKEN
with content:
[ 12, 80, [ "GARDEN", "REMAINDER", "SIDEWALK" ], [ 1, 2, 3 ], [ [ {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799418.663693125 ], [ 658661.3902512584, 6799418.663693125 ], [ 658661.3902512584, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799318.184425726 ], [ 658641.5075771975, 6799318.184425726 ], [ 658641.5075771975, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ], [ {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799455.8286861805 ], [ 658733.8121038192, 6799455.8286861805 ], [ 658733.8121038192, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799317.021565011 ], [ 658646.2939062661, 6799317.021565011 ], [ 658646.2939062661, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ], [ {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799332.653610224 ], [ 658723.7132255876, 6799332.653610224 ], [ 658723.7132255876, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799339.499237451 ], [ 658791.8083795944, 6799339.499237451 ], [ 658791.8083795944, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ] ] ]