Api session event editor parametric save as measure

From Tygron Support wiki
Revision as of 07:54, 31 March 2026 by Frank@tygron.nl (talk | contribs)
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=HTML&token=API_TOKEN

with content:

[ 20, 55, [ "WATER", "BUILDING", "REMAINDER" ], [ 1, 2, 3 ], [ [ {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799360.90018344 ], [ 658678.0587599896, 6799360.90018344 ], [ 658678.0587599896, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799308.922147329 ], [ 658735.4557295461, 6799308.922147329 ], [ 658735.4557295461, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ], [ {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799439.783873638 ], [ 658674.4775399027, 6799439.783873638 ], [ 658674.4775399027, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799394.314811478 ], [ 658793.7524704988, 6799394.314811478 ], [ 658793.7524704988, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ], [ {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799426.543963195 ], [ 658780.4751579316, 6799426.543963195 ], [ 658780.4751579316, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799411.204079326 ], [ 658716.2292064672, 6799411.204079326 ], [ 658716.2292064672, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ] ] ]