mmar_create_relationclass_instance
Create a relationclass connection within a scene instance. Provide the scene UUID and relationclass data with role and attribute instances; line points auto-populate from source/target.
Instructions
Create a new relationclass instance (connection/edge) within a scene instance.
Include:
uuid, uuid_class, uuid_relationclass (all set to the meta-Relationclass UUID)
role_instance_from: { uuid, uuid_role, uuid_has_reference_class_instance }
role_instance_to: { uuid, uuid_role, uuid_has_reference_class_instance }
attribute_instance: [...] (for each attribute on the meta-Relationclass)
line_points are AUTO-POPULATED from source/target coordinates — you do NOT need to provide them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_instance_uuid | Yes | The UUID of the SceneInstance to add the connection to | |
| relationclass_instance_data | Yes | JSON string of the RelationclassInstance data. Must include 'uuid', 'uuid_class', 'uuid_relationclass', 'role_instance_from', 'role_instance_to', and 'attribute_instance'. |