-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT: Improve extensions quality (#5549)
Co-authored-by: gmalinve <[email protected]>
- Loading branch information
1 parent
4ab7475
commit 3735ef4
Showing
43 changed files
with
1,713 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
doc/source/User_guide/pyaedt_extensions_doc/circuit/import_schematic.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
Import schematic | ||
================ | ||
|
||
Import different schematic files (.asc, .sp, .cir, .qcv) into Circuit. | ||
|
||
The extension provides a graphical user interface for configuration, | ||
or it can be used in batch mode via command line arguments. | ||
|
||
The following image shows the extension user interface: | ||
|
||
.. image:: ../../../_static/extensions/import_schematic_ui.png | ||
:width: 800 | ||
:alt: Import schematic UI | ||
|
||
|
||
Using the extension | ||
-------------------- | ||
|
||
1. Open the **Automation** tab in the Circuit interface. | ||
2. Locate and click the **Import Schematic** icon under the Extension Manager. | ||
3. In the user interface: | ||
- Browse for a supported schematic file. | ||
- Select the file and ensure its path appears in the text field. | ||
- Click **Import** to load the schematic into Circuit. | ||
4. Toggle between light and dark themes using the button in the bottom-right corner. | ||
|
||
|
||
Command line | ||
------------ | ||
|
||
You can also launch the extension directly from the terminal. | ||
|
||
The script accepts the following argument: | ||
|
||
- ``**asc_file**``: | ||
Specifies the path to the schematic file to be imported. | ||
The file must exist and should have one of the supported extensions. | ||
Example: `"C:/schematics/example.asc"` | ||
|
||
Use the following command syntax: | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
../commandline | ||
|
||
|
||
Supported file types | ||
-------------------- | ||
|
||
The following schematic file formats are supported: | ||
- **.asc**: Schematic files | ||
- **.sp**: SPICE netlist files | ||
- **.cir**: Circuit schematic files | ||
- **.qcv**: QCV-specific files | ||
|
||
Each file type can be imported using the user interface or through the command line. | ||
Ensure that the file exists at the specified path and is properly formatted. |
11 changes: 11 additions & 0 deletions
11
doc/source/User_guide/pyaedt_extensions_doc/circuit/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Circuit extensions | ||
================== | ||
|
||
.. grid:: 2 | ||
|
||
.. grid-item-card:: Import schematic | ||
:link: import_schematic | ||
:link-type: doc | ||
:margin: 2 2 0 0 | ||
|
||
Import different schematic files (.asc, .sp, .cir, .qcv) into Circuit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
doc/source/User_guide/pyaedt_extensions_doc/hfss/push_excitation.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
Push excitation from file | ||
========================= | ||
|
||
The **push excitation from file** extension allows users to assign a time-domain excitation to a port in an HFSS design | ||
by importing data from a file. | ||
|
||
The extension provides a graphical user interface (GUI) for configuration, | ||
or it can be used in batch mode via command line arguments. | ||
|
||
Features | ||
-------- | ||
|
||
- Automatically detects and lists available ports in the active HFSS design. | ||
- Allows users to browse and select a time-domain excitation file. | ||
- Supports both light and dark themes for the GUI. | ||
- Assigns excitations programmatically using a batch-mode interface. | ||
- Validates file paths and port selections to ensure proper configuration. | ||
|
||
The following image shows the extension user interface: | ||
|
||
.. image:: ../../../_static/extensions/push_excitation.png | ||
:width: 800 | ||
:alt: Push excitation UI | ||
|
||
|
||
Using the extension | ||
-------------------- | ||
|
||
1. Open the **Automation** tab in the HFSS interface. | ||
2. Locate and click the **push excitation from file** icon under the Extension Manager. | ||
3. The main window displays the following elements: | ||
- **Port selection**: A dropdown menu to select the desired port from the HFSS design. | ||
- **File browser**: A text box and button to select the excitation file. | ||
- **Push excitation button**: A button to assign the excitation to the selected port. | ||
- **Theme toggle**: A button to switch between light and dark themes. | ||
3. Click **Push excitation** after selecting the port and file to apply the configuration. | ||
|
||
|
||
Command line | ||
------------ | ||
|
||
The extension can also be used directly via the command line for batch processing. | ||
|
||
Supported arguments include: | ||
|
||
- **file path**: Path to the excitation file. | ||
- **choice**: Name of the port to assign the excitation. | ||
- **is batch**: Boolean flag to enable batch mode. | ||
|
||
Use the following syntax to run the extension: | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
../commandline |
Oops, something went wrong.