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
str
orpathlib.Path
,optional
Full path to the model file. The default is
None
.- model_name
str
orpathlib.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
True
when successful,False
when failed.
Examples
>>> from ansys.aedt.core import Hfss3dLayout >>> h3d = Hfss3dLayout("myproject") >>> h3d.modeler.set_touchstone_model(assignment="C1",input_file="comp.s2p")