create_component#

EmitComponents.create_component(component_type, name=None, library=None)#

Create a new component from a library.

Parameters:
component_typestr

Type of component to create. For example, “Antenna”.

namestr, optional

Name to assign to the new component. If None, then an instance name is assigned automatically. The default is None.

librarystr, optional

Name of the component library. If None, the syslib is used. The default is None.

Returns:
EmitComponent

The newly created component.

References

>>> oEditor.CreateComponent