create_touchstone_component_multi#
- TwinBuilderComponents.create_touchstone_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 touchstone 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 touchstone 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.
>>> :obj:`from` :obj:`ansys.aedt.core` :obj:`import` :obj:`Circuit` ..>>> :obj:`aedtapp` = :obj:`Circuit`\() ..>>> :obj:`ts` = ["path_to_file1.ts", "path_to_file2.ts"] ..>>> :obj:`c` = :obj:`aedtapp.modeler.schematic.create_touchstone_component_multi`\( ..- … component_name=”nport”,
- … num_ports=4,
- … array_name=”$SElement”,
- … array_id_name=”$SElement_id”,
- … files=[
ts[0],ts[1]], - … )