create_component#
- EmitComponents.create_component(component_type, name=None, library=None)[source]#
Create a new component from a library.
- Parameters:
- component_type
str
Type of component to create. For example, “Antenna”.
- name
str
,optional
Name to assign to the new component. If
None
, then an instance name is assigned automatically. The default isNone.
- library
str
,optional
Name of the component library. If
None
, the syslib is used. The default isNone
.
- component_type
- Returns:
EmitComponent
The newly created component.
References
>>> oEditor.CreateComponent