set_touchstone_model#
- Modeler3DLayout.set_touchstone_model(assignment, input_file, model_name=None)#
Assign a Touchstone model to a component.
- Parameters:
- assignment
str Name of the component.
- input_file
strorpathlib.Path,optional Full path to the model file. The default is
None.- model_name
strorpathlib.Path,optional Name of the model. The default is
None, in which case the model name is the file name without an extension.
- assignment
- Returns:
- bool
Truewhen successful,Falsewhen failed.
Examples
>>> from ansys.aedt.core import Hfss3dLayout >>> h3d = Hfss3dLayout("myproject") >>> h3d.modeler.set_touchstone_model(assignment="C1", input_file="comp.s2p")