Read, Edit, and Save Models with the SDK
A model is not a set of JSON that can be assembled at will without the workspace. Component types, parameter defaults, ports, and global parameters all come from the workspace definition. A safer script sequence is: first read the definition, then edit the model in the SDK memory, verify the current draft, and finally save.
This page unfolds along a complete process:
- Read accessible workspace and component definitions;
- Create a new model or read an existing model by model ID;
- Manage sheet, add common components and set parameters;
- Establish a connection based on the port Key in the definition;
- Add linear components and descriptive connections as needed;
- Set global parameters;
- Verify, save, save and re-read verification.
SDK installation and certification configuration should be completed before starting, see Install and Authenticate the Python SDK.
First Distinguish Between Workspace Definition, Model Draft and Server Model
The SDK handles three types of confusing data simultaneously:
| Data | Function | When Changes |
|---|---|---|
| workspace definition | Gives available component, parameter, port, directive and global parameter definitions | Published by space maintainer; SDK caches read results |
Current Model object | Model draft in current Python process | Changes immediately when calling methods such as adding, connecting, changing parameters, deleting sheets, etc. |
| Server model | Model records that can be reread by other pages and processes in the platform | Changes when creating model, save() , save_as() or delete() |
client.create_model(...) will immediately create a model record on the server and return Model with the server model ID. After that, add_component(), connect(), set_global() and other methods are called to only modify the current memory object; save() must be called before these changes will be written back to the original model.
client.get_model(model_id) reads the current snapshot in the server. After the reading is completed, the local object and the server record will not be automatically synchronized in both directions: changes saved by others will not enter the current object by themselves, and changes in the current object will not be automatically uploaded. get_model() should be called again when the latest content is required.
Read Space and Component Definitions
First list the workspaces that can be used by the current account:
workspace_items = client.meta.list_workspace_types(scope="access")
for item in workspace_items:
print(item.get("type"), item.get("name"))
After selecting workspace_type, read the space definition and component dictionary:
workspace_definition = client.meta.get_workspace_definition(
workspace_type,
refresh=True,
)
component_definitions = client.meta.list_components(workspace_type)
for class_id, definition in component_definitions.items():
print(class_id, definition.get("label"))
The dictionary key here is class_id used when creating the component. Do not infer class_id from the interface name. The port should also read key in portsDefinition, and do not regard the port display name as the Key:
component_definition = client.meta.get_component_definition(
workspace_type,
class_id,
)
for port in component_definition.get("portsDefinition", []):
print(port.get("key"), port.get("name"), port.get("type"))
The SDK caches space and component definitions. When the space maintainer first publishes a new definition, it uses refresh=True to re-read the space definition; subsequent component dictionaries obtained from the same client will use the contents of this refresh.
Create a Model or Read an Existing Model
Create New Model
model = client.create_model(
name="SDK 建模示例",
workspace_type=workspace_type,
description="从工作台空间定义创建",
publicity="private",
)
print(model.id)
When creating, the SDK will read the default global parameters of the current space, generate a default sheet with the ID sheet_0 and the name "sheet 1", and immediately create the server model. global_params can be used to override some of the global defaults:
model = client.create_model(
name="SDK 建模示例",
workspace_type=workspace_type,
global_params={global_key: desired_value},
)
global_key and the type of the value should still come from the global parameter definition of the current space.
Read Existing Model
model = client.get_model(model_id)
print(model.id, model.name, model.workspace_type)
Check model.workspace_type first after reading to avoid writing component types and parameters prepared for another workspace into the current model. You can use client.list_models(**params) when you need to find a model; the list parameters should be passed in according to the public convention of the current model list interface.
Manage Sheet
The new model already contains the default sheet:
main_sheet = model.default_sheet
model.rename_sheet(main_sheet, "主流程")
note_sheet = model.add_sheet("说明")
print([(sheet.id, sheet.name) for sheet in model.sheets])
Commonly used sheet methods are as follows:
| Method | Result |
|---|---|
model.get_sheet(sheet_id) | Get sheet by stable sheet ID |
model.add_sheet(name=None) | Added sheet; if no name is passed, it will be generated by SDK |
model.rename_sheet(sheet_or_id, name) | Modify the display name without changing the sheet ID |
model.copy_sheet(sheet_or_id, name=None) | Copies the sheet contents and generates new sheet , component and edge IDs for the copy |
model.remove_sheet(sheet_or_id) | Delete sheet and its contents from the current draft; the model retains at least one sheet |
Ordinary physical connections can only connect components in the same sheet. Do not use model.connect() to forcibly create cross-sheet edges; the current SDK can construct such local objects, but unified verification will identify it as an invalid topology.
If the current workspace supports port labels or signal parameters, the same name can be used to express cross-sheet logical relationships. Name matching strips leading and trailing spaces, but is case-sensitive. Copying a sheet retains these names, so the copy may accidentally join the original logical network; labels and signal parameters should be checked before saving the copy.
Add a Normal Component and Set Parameters
Add a normal component with class_id defined by the selected component:
source = main_sheet.add_component(
source_class_id,
label="入口实例",
position=(80, 120),
mode="node",
)
target = main_sheet.add_component(
target_class_id,
label="出口实例",
position=(520, 120),
mode="node",
)
mode="node" explicitly requires the use of normal icon form. When adding a component, the SDK will generate parameter default values based on the component definition, and then overwrite the top-level parameters with the same name with the values provided in params:
source = main_sheet.add_component(
source_class_id,
params={parameter_key: desired_value},
)
The generation of default values is also determined by the definition: defaultValue is used first, followed by default; object parameters will recursively generate defined subfields, and explicit object default values only cover these known subfields; table parameters without default values use empty lists, and other parameters use empty strings. Global parameter default values follow the same set of definition rules.
After creation, you can also modify it item by item or in batches:
source.set_param(parameter_key, desired_value)
source.set_params(**{another_parameter_key: another_value})
print(source.get_param(parameter_key))
The parameter Key comes from argsDefinition[].key of each parameter group in the component definition. set_param() will update the local dictionary, but will not judge by itself whether the Key exists, whether the value is out of bounds, whether the table column is complete, or whether the object subfield is valid; these rules are subject to the unified verification results.
The component definition also determines the conditional port. After modifying the control parameters, you can use component.active_ports to view the ports that are considered enabled by SDK local expression evaluation:
for port in source.active_ports:
print(port.key, port.name, port.type, port.direction)
This result is suitable for interactive inspection and is not final proof of legality. The expression syntax in the space definition may exceed the processing range of the local evaluator, and model.validate() should still be called eventually.
Distinguish Between Stable Identity and Display Name
Automated scripts should preserve stable identification and use display names to aid human readability. Internal IDs such as sheet , component , and wire only locate resources within the owning model; when recording these IDs, you should also record the model UUID:
| Object | Stable Identification | Show Name or Label |
|---|---|---|
| model | model.id | model.name |
| sheet | sheet.id | sheet.name |
| component type | component.class_id | label in component definition |
| component instance | component.id | component.label |
| port | port.key | port.name |
The connection saves the component instance ID and port key, not the component label and port name. Renaming the sheet or modifying component label should not be used as a means to change the topology identity.
save_as() creates a new model UUID, but it does not regenerate the internal IDs such as sheet , component , wires, and descriptive wires when it copies the current snapshot. Therefore, the same sheet.id , component.id or edge ID may appear in the original model and the copy. When saving positioning information across models, you must use "model UUID + internal ID", and the internal ID cannot be regarded as a platform-wide unique identifier.
Connection Port
The port object defining the driver can be read from Component.ports:
for port in source.ports:
print(port.key, port.name, port.type, port.direction, port.is_active)
When establishing a normal physical connection, pass in the component object and port Key:
connection = main_sheet.connect(
source,
source_port_key,
target,
target_port_key,
)
print(connection.id, connection.type)
The SDK generates connection types based on the source port type: FLUID, CONTROL, and ELECTRICAL correspond to fluid, control, and electrical connections respectively. The non-existent port Key will immediately trigger ValidationError; the type, direction, enabling conditions, number of connections, and same sheet constraints at both ends are subject to the results of model.validate().
Port labels are not physical connections. When the current workspace explicitly supports networking with port labels with the same name, it can be set as follows:
source.set_pin_label(source_port_key, "network_A")
another_component.set_pin_label(another_port_key, "network_A")
Do not treat port labels, signal parameters, and connections on the diagram as three interchangeable ways of writing at the same time; follow the connection method expressed by the current space definition.
Add Line Components as Needed
Line components are component instances, not ordinary connections. The SDK only accepts component definitions that contain exactly two physical ports. The first port in the definition corresponds to the source end, and the second port corresponds to the target end; the port Key and connection rules still need to be confirmed through unified verification:
linear = main_sheet.add_linear_component(
linear_class_id,
label="中间线型元件",
source=(220, 120),
target=(420, 120),
)
linear.attach("source", source, source_port_key)
linear.attach("target", target, target_port_key)
The endpoint of attach() can only be attached to a normal component port and cannot be attached to another linear component. Endpoints can also be temporarily released to canvas coordinates:
linear.detach("source", point=(220, 120))
print(linear.endpoint("source"))
If the default shape defined by component is linear, add_component() may return linear component if mode is not passed; when explicit selection is required, use mode="node" for normal shapes and add_linear_component() for linear shapes.
Calling component.linearize() on an existing common component will retain the instance ID, labels and parameters, but will remove the physical edges connected to the common component; linear.delinearize() may also re-establish the connection based on the endpoint. This type of transition should be verified in a copy of the model first and should not be treated as a pure display switch.
Add Descriptive Lines
AnnotationEdge is used for canvas description and does not enter the physical topology. Next, add a point-to-point descriptive line on the "Description" sheet:
annotation = note_sheet.add_annotation(
{"x": 40.0, "y": 60.0},
{"x": 320.0, "y": 60.0},
attrs={
"line": {
"stroke": "#64748b",
"strokeDasharray": "6 4",
}
},
)
print(annotation.id)
Descriptive wiring helps organize the diagram, but it does not complete unconnected physical ports or change the model's computational network.
Set Global Parameters
First read the global parameter definition, and then use the Key in the definition:
global_definition = client.meta.get_global_definition(workspace_type)
print(global_definition)
model.set_global(global_key, desired_global_value)
print(model.get_global(global_key))
The global default values given by the current definition are already written when the model is created. set_global() only modifies the local global_params; unknown keys, type errors, range errors and constraints between parameters are still judged by unified verification.
Review Current Draft and Understand ValidationResult
result = model.validate()
print(result.valid, result.counts)
for issue in result.issues:
print(
issue.severity,
issue.code,
issue.message,
issue.sheet_id,
issue.element_id,
issue.parameter_key,
issue.path,
)
validate() will submit the unsaved snapshot generated by the current memory object to the platform unified verifier; it requires network and valid permissions, but will not save the model.
The main fields of ValidationResult are as follows:
| Field | Meaning |
|---|---|
valid | If and only if the quantity of error is 0, it is True |
counts | Number of three types of questions error, warning, info |
issues | An immutable sequence of issues, each containing severity, code, message, and location information |
ValidationIssue may point to a specific location via sheet_id , element_id , component_class_id , parameter_key and path . Some questions may not have all targeting fields, and the actual returned content should prevail. warning and info will not change valid into False, but they should still be confirmed on a case-by-case basis before publishing or running in batches.
You can use this when you only care about one component:
component_result = source.validate()
This method still verifies the entire model, but returns issues filtered by the component instance ID; it requires no fewer server visits than full model verification.
Save, Save as and Reload Verification
There are two verification strategies for saving the current model:
# 直接写回,不先做统一校验;这是默认行为。
model.save(validate=False)
# 先校验当前草稿;存在 error 时抛出 ValidationError,不执行保存。
model.save(validate=True)
It is recommended to use save(validate=True) at the final save point of the automation script. If model.validate() has been explicitly checked and there are any local modifications later, it should be rechecked and the old ValidationResult should not be reused.
Saving as creates a new server model and returns another Model object:
copied = model.save_as(
name=f"{model.name}-副本",
description="由 SDK 从已校验草稿另存",
publicity="private",
)
print(model.id, copied.id)
save_as() has no validate parameter. You should explicitly execute model.validate() and confirm that the current draft has no errors before calling it. Saving does not switch the original object to the new model, nor does it change the original model UUID; the returned object has a new model UUID, but its snapshot retains the sheet, component, and edge IDs in the current draft.
After saving, re-read from the server and verify the key fields instead of just checking that save() does not throw an exception:
assert model.id is not None
reloaded = client.get_model(model.id)
assert reloaded.workspace_type == model.workspace_type
assert reloaded.get_component(source.id).class_id == source.class_id
assert len(reloaded.sheets) == len(model.sheets)
If the model is likely to be edited by multiple people at the same time, rereading can also help discover whether the current saved results are as expected. The SDK currently does not automatically merge the two processes' respective local drafts.
A Complete Process That Can Be Run
The following script will not hardcode a business workspace. Before running, select two class_id that can be used as ordinary components from the previous metadata output and pass them in through environment variables. The script will select a port key of the same type, appropriate direction, and locally determined to be enabled from the component definition. If you use complex conditional expressions, you can also explicitly pass in the port key that has been checked.
| Environment Variables | Required | Description |
|---|---|---|
NEXUSFLOW_BASE_URL | Yes | Platform root address |
NEXUSFLOW_USERNAME | Yes | Username or full email |
NEXUSFLOW_PASSWORD | Yes | Password; should be injected by security mechanism |
NEXUSFLOW_WORKSPACE_TYPE | Yes | Spatial type read from accessible spatial metadata |
NEXUSFLOW_SOURCE_CLASS_ID | Yes | Starting component type selected from component dictionary |
NEXUSFLOW_TARGET_CLASS_ID | Yes | The endpoint component type selected from the component dictionary |
NEXUSFLOW_SOURCE_PORT_KEY | No | Checked start port Key; set in pair with the end port Key |
NEXUSFLOW_TARGET_PORT_KEY | No | Checked end port Key; set in pair with the start port Key |
NEXUSFLOW_LINEAR_CLASS_ID | No | A two-port line component selected from the component dictionary; if not set, normal wires are used |
NEXUSFLOW_PARAMETER_KEY | No | Starting point component parameter Key to set; if not set, select the first parameter in the definition |
NEXUSFLOW_PARAMETER_VALUE_JSON | No | JSON value of the parameter; retains the default value generated by the definition if not set |
NEXUSFLOW_GLOBAL_KEY | No | Global parameter Key to be set; if not set, select the first parameter in the definition |
NEXUSFLOW_GLOBAL_VALUE_JSON | No | JSON value of the global parameter; retain the default value generated by the definition if not set |
The source, target component, and optional line component must form a representative minimal topology recognized by the target workspace. Different spaces have different requirements for required ports and required parameters. The script will not guess these business rules; when the verification fails, the model will be completed according to the problem location.
from __future__ import annotations
import json
import os
from typing import Any
from nexusflow_sdk import (
Component,
Model,
NexusFlowClient,
PortRef,
ValidationError,
ValidationResult,
)
def require_env(name: str) -> str:
value = os.getenv(name, "").strip()
if not value:
raise RuntimeError(f"缺少环境变量:{name}")
return value
def arg_definitions(args_group: Any) -> list[dict[str, Any]]:
definitions: list[dict[str, Any]] = []
if not isinstance(args_group, list):
return definitions
for group in args_group:
if not isinstance(group, dict):
continue
for item in group.get("argsDefinition", []) or []:
if isinstance(item, dict) and item.get("key"):
definitions.append(item)
return definitions
def configured_value(name: str, default: Any) -> Any:
raw = os.getenv(name)
return default if raw is None else json.loads(raw)
def choose_parameter(
component: Component,
definition: dict[str, Any],
) -> None:
definitions = arg_definitions(definition.get("argsGroup"))
requested = os.getenv("NEXUSFLOW_PARAMETER_KEY", "").strip()
if requested:
keys = {str(item["key"]) for item in definitions}
if requested not in keys:
raise RuntimeError(f"元件定义中没有参数 Key:{requested}")
key = requested
elif definitions:
key = str(definitions[0]["key"])
else:
print("起点元件没有可设置的顶层参数")
return
value = configured_value(
"NEXUSFLOW_PARAMETER_VALUE_JSON",
component.get_param(key),
)
component.set_param(key, value)
print(f"已设置元件参数:{key}={value!r}")
def requested_ports(
source: Component,
target: Component,
) -> tuple[PortRef, PortRef] | None:
source_key = os.getenv("NEXUSFLOW_SOURCE_PORT_KEY", "").strip()
target_key = os.getenv("NEXUSFLOW_TARGET_PORT_KEY", "").strip()
if bool(source_key) != bool(target_key):
raise RuntimeError("起点和终点端口 Key 必须同时设置")
if not source_key:
return None
return source.port(source_key), target.port(target_key)
def choose_direct_ports(
source: Component,
target: Component,
) -> tuple[PortRef, PortRef]:
explicit = requested_ports(source, target)
if explicit is not None:
return explicit
for source_port in source.active_ports:
if source_port.direction == "IN":
continue
for target_port in target.active_ports:
if target_port.direction == "OUT":
continue
if source_port.type == target_port.type:
return source_port, target_port
raise RuntimeError("没有找到本地可判断为启用的兼容端口,请显式设置端口 Key")
def choose_linear_ports(
source: Component,
target: Component,
linear_ports: list[PortRef],
) -> tuple[PortRef, PortRef]:
explicit = requested_ports(source, target)
if explicit is not None:
return explicit
if len(linear_ports) != 2:
raise RuntimeError("线型元件定义必须恰好包含两个物理端口")
for source_port in source.active_ports:
if source_port.direction == "IN" or source_port.type != linear_ports[0].type:
continue
for target_port in target.active_ports:
if target_port.direction == "OUT":
continue
if target_port.type == linear_ports[1].type:
return source_port, target_port
raise RuntimeError("没有找到与线型元件两端兼容的活动端口")
def set_global_parameter(client: NexusFlowClient, model: Model) -> None:
definitions = arg_definitions(
client.meta.get_global_definition(model.workspace_type)
)
requested = os.getenv("NEXUSFLOW_GLOBAL_KEY", "").strip()
if requested:
keys = {str(item["key"]) for item in definitions}
if requested not in keys:
raise RuntimeError(f"全局参数定义中没有 Key:{requested}")
key = requested
elif definitions:
key = str(definitions[0]["key"])
else:
print("当前空间没有可设置的全局参数")
return
value = configured_value(
"NEXUSFLOW_GLOBAL_VALUE_JSON",
model.get_global(key),
)
model.set_global(key, value)
print(f"已设置全局参数:{key}={value!r}")
def print_validation(result: ValidationResult) -> None:
print(f"校验通过:{result.valid},问题统计:{result.counts}")
for issue in result.issues:
location = issue.path or issue.element_id or issue.sheet_id or "model"
print(f"[{issue.severity}] {issue.code}: {issue.message} ({location})")
def main() -> None:
base_url = require_env("NEXUSFLOW_BASE_URL")
username = require_env("NEXUSFLOW_USERNAME")
password = require_env("NEXUSFLOW_PASSWORD")
workspace_type = require_env("NEXUSFLOW_WORKSPACE_TYPE")
source_class_id = require_env("NEXUSFLOW_SOURCE_CLASS_ID")
target_class_id = require_env("NEXUSFLOW_TARGET_CLASS_ID")
linear_class_id = os.getenv("NEXUSFLOW_LINEAR_CLASS_ID", "").strip()
with NexusFlowClient(base_url=base_url, timeout=30) as client:
client.login(username, password)
accessible = {
str(item["type"])
for item in client.meta.list_workspace_types(scope="access")
if isinstance(item, dict) and item.get("type")
}
if workspace_type not in accessible:
raise RuntimeError(f"当前账号不能访问工作台空间:{workspace_type}")
component_definitions = client.meta.list_components(
workspace_type,
refresh=True,
)
required_classes = {source_class_id, target_class_id}
if linear_class_id:
required_classes.add(linear_class_id)
missing = required_classes.difference(component_definitions)
if missing:
raise RuntimeError(f"空间定义中没有元件类型:{sorted(missing)}")
# 这一步立即创建服务器模型,随后编辑仍只发生在内存对象中。
model = client.create_model(
name="SDK 建模示例",
workspace_type=workspace_type,
description="由 SDK 从当前空间定义创建",
publicity="private",
)
assert model.id is not None
print(f"已创建模型:{model.name} ({model.id})")
main_sheet = model.rename_sheet(model.default_sheet, "主流程")
note_sheet = model.add_sheet("说明")
source = main_sheet.add_component(
source_class_id,
label="入口实例",
position=(80, 120),
mode="node",
)
target = main_sheet.add_component(
target_class_id,
label="出口实例",
position=(520, 120),
mode="node",
)
choose_parameter(source, component_definitions[source_class_id])
if linear_class_id:
linear = main_sheet.add_linear_component(
linear_class_id,
label="中间线型元件",
source=(220, 120),
target=(420, 120),
)
source_port, target_port = choose_linear_ports(
source,
target,
linear.ports,
)
linear.attach("source", source, source_port.key)
linear.attach("target", target, target_port.key)
print(f"已添加线型元件:{linear.id}")
else:
source_port, target_port = choose_direct_ports(source, target)
connection = main_sheet.connect(
source,
source_port.key,
target,
target_port.key,
)
print(f"已添加物理连线:{connection.id} ({connection.type})")
note_sheet.add_annotation(
{"x": 40.0, "y": 60.0},
{"x": 320.0, "y": 60.0},
attrs={
"line": {
"stroke": "#64748b",
"strokeDasharray": "6 4",
}
},
)
set_global_parameter(client, model)
# 校验的是当前未保存草稿;校验不会修改服务器模型。
validation = model.validate()
print_validation(validation)
if not validation.valid:
raise ValidationError("当前模型仍有校验错误,未执行保存")
# 最终写回前再次校验,避免在上一次校验后遗漏本地改动。
model.save(validate=True)
reloaded = client.get_model(model.id)
assert reloaded.workspace_type == workspace_type
assert reloaded.get_component(source.id).class_id == source.class_id
assert len(reloaded.sheets) == len(model.sheets)
print(f"已重新读取并核验原模型:{reloaded.id}")
# save_as() 没有 validate 参数;当前草稿已校验且保存后未再修改。
copied = model.save_as(
name=f"{model.name}-副本",
description="由 SDK 从已校验模型另存",
publicity="private",
)
assert copied.id is not None and copied.id != model.id
copied_reloaded = client.get_model(copied.id)
assert copied_reloaded.workspace_type == workspace_type
print(f"已另存并核验副本:{copied_reloaded.id}")
if __name__ == "__main__":
main()
If the verification fails during the first run, do not skip the verification and save it directly as a "runnable model". First complete the required ports, required parameters and global parameters according to ValidationIssue. The example will create the original model and a copy, but will not automatically delete them; confirm that the test is completed before processing according to the team's data retention rules.
Risks of Deletion and Structural Changes
The following methods will first change the current draft, and then write the original model at save():
model.remove_component(component_id)will delete the component, remove the ordinary physical edges connected to it and the descriptive connection with it as the anchor point; other line components adsorbed to its endpoints will be released to the coordinates;model.disconnect(connection_id)will delete ordinary physical connections;model.remove_annotation(annotation_id)will delete descriptive connections;model.remove_sheet(sheet_or_id)will delete the components, physical connections and descriptive connections in the sheet;component.linearize()will remove the original physical connection of the common component.
These methods may directly return partial IDs that do not exist. "No exception is thrown" should not be regarded as the target is indeed deleted. Before saving, check model.components, model.connections, model.annotations and the contents of each sheet, and verify again.
model.delete() does not belong to local editing: for models with server IDs, it will immediately request deletion of the server model, and there is no need to call save() again. Python objects may still remain in memory after deletion, but this does not mean that the server record still exists. Automated scripts should not place deletions in broad exception cleanup logic; they should check the model ID, name, space, user, and recovery preparation before executing.
Frequently Asked Questions
Why Can’T I See the Page After Modifying the Parameters?
set_param() only changes the current Model object. After calling model.save(), re-read from the page or another SDK client.
active_ports Shows That the Port Is Enabled, Why Does the Verification Still Fail?
active_ports is the local best-effort evaluation result. Unified verification also checks expressions, port types, directions, number of connections, cross-sheet relationships and other spatial rules, which should be returned by model.validate().
Does save() Success Mean That the Model Can Be Run?
Not necessarily. save() The default parameter is validate=False, which only proves that the save request is successful. Using save(validate=True) can prevent drafts containing verification errors from being written back, but whether the actual calculation can be completed still needs to be proven by job running.
Why Does the ID of the Original Object Not Change After Saving?
save_as() returns Model with the new model UUID, and the original object continues to represent the original model. Please save the return value and use a copy of the id operation on the returned object. The sheet, component and edge IDs inside the copy will not be regenerated, and the model UUID of the copy should still be carried when locating the resources.
Can I Connect Two Components in Different Sheets?
It cannot be connected directly using ordinary physical edges. When you need to express relationships across sheets, you can only use port labels or signal parameters that have been defined and supported by the current workspace, and confirm them through unified verification.
Next Steps
After the model is saved and re-read for verification, create a simulation job according to Run Jobs and Read Results with the SDK. This page does not expand job snapshot, status control and result consumption.