Api session event editor parametric save as measure
Jump to navigation
Jump to search
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:
[ 52, 88, [ "BUILDING", "SIDEWALK", "PUBLIC_GREEN" ], [ 1, 2, 3 ], [ [ {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799396.289744721 ], [ 658642.1491109546, 6799396.289744721 ], [ 658642.1491109546, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799452.500834502 ], [ 658684.4773458325, 6799452.500834502 ], [ 658684.4773458325, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ], [ {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799338.899940316 ], [ 658760.4528081666, 6799338.899940316 ], [ 658760.4528081666, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799344.3131054705 ], [ 658745.2931218666, 6799344.3131054705 ], [ 658745.2931218666, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ], [ {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799326.196150796 ], [ 658652.7823299611, 6799326.196150796 ], [ 658652.7823299611, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799308.853934905 ], [ 658755.7070825003, 6799308.853934905 ], [ 658755.7070825003, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ] ] ]