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_filestr

Path to .lib file.

modelstr, 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.

locationlist, optional

Position in the schematic of the new component.

symbol_pathstr, optional

Path to the symbol library. Default value is "Nexxim Circuit Elements\Nexxim_symbols:".

symbolstr, optional

Symbol name to replace the spice model with. Default value is an empty string which means the default symbol for spice is used.

Returns:
ansys.aedt.core.modeler.cad.object_3dcircuit.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)