Api session event editor netload generate paths

From Tygron Support wiki
Revision as of 15:30, 10 November 2026 by Frank@tygron.nl (talk | contribs)
Jump to navigation Jump to search

API Endpoint: api/session/event/editornetload/generate_paths/

Description: Connect Net Loads to an existing Net by adding Net Lines with the provided Net Function. Net Lines are generated with a Search Range for paths to existing Net Nodes and a Merge Range to combine Net Nodes.

Index Importance Type Description Values
0 REQUIRED (NET_FUNCTION Integer ID) Net Function
1 REQUIRED (NET_LOAD Integer ID or multiple integer values in array [1, 2, 3]) Net Loads
2 REQUIRED (Floating point number) Search Range
3 REQUIRED (Floating point number) Merge Range

Response Codes

Response Code: Description
204 No Content
300-600 Codes Overview

Example POST

Curl example POST

curl 'https://engine.tygron.com/api/session/event/editornetload/generate_paths/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ 1, 1, 63, 66 ]'

Curl example multi item POST

curl 'https://engine.tygron.com/api/session/event/editornetload/generate_paths/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ 1, [ 1, 2, 3 ], 60, 12 ]'

JavaScript example POST

var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
 body: '[ 1, 1, 63, 66 ]'
};
fetch("https://engine.tygron.com/api/session/event/editornetload/generate_paths/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));