create_touchstone_component#
- MaxwellCircuitComponents.create_touchstone_component(model_name, location=None, angle=0, show_bitmap=True)#
Create a component from a Touchstone model.
- Parameters:
- model_name
str Name of the Touchstone model or full path to touchstone file. If full touchstone is provided then, new model will be created.
- location
listoffloat,optional Position on the X and Y axis.
- angle
float,optional Angle rotation in degrees. The default is
0.- show_bitmapbool,
optional Show bitmap image of schematic component. The default value is
True.
- model_name
- Returns:
ansys.aedt.core.modeler.circuits.object_3d_circuit.CircuitComponentCircuit Component Object.
References
>>> oModelManager.Add >>> oComponentManager.Add >>> oEditor.CreateComponent
Examples
>>> from ansys.aedt.core import Circuit >>> from pathlib import Path >>> cir = Circuit() >>> comps = cir.modeler.components >>> s_parameter_path = Path("your_path") / "s_param_file_name.s4p" >>> circuit_comp = comps.create_touchstone_component(s_parameter_path, location=[0.0, 0.0], show_bitmap=False)