EikonalWorks User's Manual
  • Workbench
  • IntensityView
  • Core Calculations
Search Results for

    Show / Hide Table of Contents
    • Overview and Client Examples
    • Complete Agent Reference
    • File Input and Output
      • OpenFile
      • SaveFile
      • RemoveLid
    • Queries
      • GetParameter
      • GetProperty
      • GetPropertyField
    • Properties and Flux
      • SetProperty
      • SetLuminousFlux
      • SetLampFlux
      • SetLampNumber
      • SetInputPower
      • SetEmitterLOR
      • SetPhotometryUnit
    • Photometric Transforms
      • SetSymmetryData
      • SetResolution
      • RotateEuler
      • RotateQuaternion
      • Scale
      • AutoAlignPhotometry
      • Smoothen
      • EraseUlor
      • Sharpen
    • Geometry
      • SetGeometry
    • Luminaire and Channel Management
      • ConfigureLuminaire
      • DuplicateLuminaire
      • MoveMesh
      • RemoveMesh
      • Combine
    • Map Modification
      • PaintBrush
      • FillSelection
      • ScaleAdd
      • CloneTool
      • ApplyTransform
    • Roadway Scenarios
      • NewRoadwayScenario
      • QueryRoadwayScenario
      • EditRoadwayScenario
      • CalculateRoadwayScenario
      • GetRoadwayScenarioData
      • LoadRoadwayScenarioFile
      • SaveRoadwayScenarioFile
    • View
      • SetCoordinateSystem
    • Session and History
      • Undo
      • Redo
      • StartCommandServer
      • StopCommandServer

    EditRoadwayScenario

    Modify a loaded scenario atomically using JSON Patch.

    Undo support: Yes. Undo restores the previous definition while retaining its ID.

    Syntax

    EditRoadwayScenario <scenarioId> <JSON Patch array>
    

    The JSON array is the raw remainder of the command. Do not wrap the entire array in shell-style quotes. JSON strings retain their own quotes, escapes and Unicode. This exception to ordinary command tokenization applies in both the console and HTTP API.

    EditRoadwayScenario 2 [{"op":"replace","path":"/name","value":"Local road"},{"op":"replace","path":"/elements/0/lanes/0/width","value":3.5}]
    

    Supports add, replace, remove and test. JSON Pointer array indices are zero-based, unlike the one-based element numbers in result queries. Use /- to append to an array. test can guard an edit against unexpected existing values. All operations either succeed together or leave the scenario unchanged.

    Definition Fields

    • Scenario: name, maintenanceFactor, elements, luminaireArrangements.
    • Roadway element: type:"Roadway", name, lanes, rTable, rTableWet, optional valuationField.
    • Lane: width in metres and flowDirection (0 = positive X, 1 = negative X).
    • Other elements: type, name, width, height, optional valuationField. Types are Sidewalk, BicycleLane, LayBy, GrassStrip, Median and EmergencyLane.
    • Arrangement: name, luminousFlux, arrangementType, poleDistance, lightPointHeight, poleRotation, tiltAngle, overhang, displacement. Distances are metres and angles are degrees. Arrangement types 0 through 4 mean lower side, upper side, two-sided, staggered and median.

    Use registered assessment and R-table names as shown by the designer or query. A luminance assessment requires a roadway and a dry R table. Removing valuationField removes its assessment. Photometry is supplied separately at calculation time.

    Validation and Response

    Returns the scenario ID and updated definition, like QueryRoadwayScenario. Errors start with ERROR:. Unknown fields, missing replace/remove targets, invalid types, unknown table/class names, and incompatible assessments are rejected.

    Safety limits: at most 100 elements, 100 arrangements and 1000 patch operations; 1-10 lanes per roadway; widths 0.01-100 m (total width at most 1000 m); maintenance factor greater than zero and at most 1; pole spacing 1-200 m; mounting height 0.1-100 m; tilt -90 to 90 degrees; rotation -180 to 180 degrees; overhang -100 to 100 m; displacement 0-200 m; non-road height -100 to 100 m. Arrangement luminous flux is -1 (unspecified) or positive, at most 1e12 lm. All numeric values must be finite. Changes that produce invalid definitions are rejected before grid construction.

    In this article
    Back to top Generated by DocFX