mmar_create_relationclass
Create a new relationclass (edge type) and add it to an existing SceneType, specifying roles, attributes, and ports to define connections between classes.
Instructions
Create a new relationclass (edge/connection type) and add it to an existing SceneType.
IMPORTANT: The classes referenced in role_from.class_references and role_to.class_references MUST already exist in the SceneType.
The relationclass_data JSON should include: uuid, name, geometry, role_from (with uuid, name, class_references[{uuid, min, max}]), role_to (same structure), bendpoint, attributes, ports.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_type_uuid | Yes | The UUID of the SceneType to add the relationclass to | |
| relationclass_data | Yes | JSON string of the Relationclass data including uuid, name, role_from, role_to, attributes, ports |