create_state_space_component_multi#
- NexximComponents.create_state_space_component_multi(component_name: str, num_ports: int, array_name: str, array_id_name: str, files: list, location: list | None = None, page: int = 1, angle: int | float = 0.0, flip: bool = False) CircuitComponent#
Create an N-port multi-component by importing state space files.
- Parameters:
- component_name
str Name of the component to create.
- num_ports
int Number of ports or transmission lines.
- array_name
str Name of the array variable. It must start with the
$symbol as it defines a project variable.- array_id_name
str Name of the array ID variable. It must start with the
$symbol as it defines a project variable.- files
list List of state space file paths to import.
- location
tuple,optional Tuple of
(x, y)coordinates for component location. IfNone, default location is used. Default isNone.- page
int,optional Schematics page number. Default is
1.- angle
intorfloat,optional Rotation angle in degrees. Default is
0.0.- flipbool,
optional Whether to flip the component. Default is
False.
- component_name
- Returns:
ansys.aedt.core.modeler.cad.object_3dcircuit.CircuitComponentComponent object.
Examples
>>> from ansys.aedt.core import Circuit >>> aedtapp = Circuit() >>> sss = ["path_to_file1.sss", "path_to_file2.sss"] >>> c = aedtapp.modeler.schematic.create_state_space_component_multi( ... component_name="nport", ... num_ports=4, ... array_name="$SSSElement", ... array_id_name="$SSSElement_id", ... files=[sss[0], sss[1]], ... location=["10mm", 2], ... )