DesignPlanar.copy_qcomponent¶
- DesignPlanar.copy_qcomponent(original_qcomponent: QComponent, new_component_name: str, options_superimpose: dict = {}) Optional[QComponent] ¶
Copy a qcomponent in QDesign and add it to QDesign._components using options_overwrite.
- Parameters
original_class (QComponent) – The QComponent to copy.
new_component_name (str) – The name should not already be in QDesign, if it is, the copy fill fail.
options_superimpose (dict) – Can use different options for copied QComponent. Will start with the options in original QComponent, and then superimpose with options_superimpose. An example would be x and y locations.
- Returns
None if not copied, otherwise, a QComponent instance.
- Return type
union[‘QComponent’, None]