create_component_from_spicemodel#
- NexximComponents.create_component_from_spicemodel(input_file, model=None, create_component=True, location=None, symbol_path='Nexxim Circuit Elements\\Nexxim_symbols:', symbol='')#
Create and place a new component based on a spice .lib file.
- Parameters:
- input_file
str
Path to .lib file.
- model
str
,optional
Model name to import. If None the first subckt in the lib file will be placed.
- create_componentbool,
optional
If set to
True
, create a spice model component. Otherwise, only import the spice model.- location
list
,optional
Position in the schematic of the new component.
- symbol_path
str
,optional
Path to the symbol library. Default value is
"Nexxim Circuit Elements\Nexxim_symbols:"
.- symbol
str
,optional
Symbol name to replace the spice model with. Default value is an empty string which means the default symbol for spice is used.
- input_file
- Returns:
ansys.aedt.core.modeler.circuits.object_3d_circuit.CircuitComponent
Circuit Component Object.
Examples
>>> from ansys.aedt.core import Circuit >>> cir = Circuit(version="2023.2") >>> model = os.path.join("Your path", "test.lib") >>> cir.modeler.schematic.create_component_from_spicemodel(input_file=model,model="GRM1234",symbol="nexx_cap") >>> cir.release_desktop(False, False)