Skip to content

Commit 48e53a3

Browse files
Samuelopez-ansyspyansys-ci-botSMoraisAnsysgmalinve
authored
REFACTOR: Extension manager compatible with toolkits (#6115)
Co-authored-by: pyansys-ci-bot <[email protected]> Co-authored-by: Sébastien Morais <[email protected]> Co-authored-by: Giulia Malinverno <[email protected]>
1 parent 07edcc1 commit 48e53a3

File tree

27 files changed

+230
-158
lines changed

27 files changed

+230
-158
lines changed

doc/changelog.d/6115.miscellaneous.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Extension manager compatible with toolkits

doc/source/Getting_started/Installation.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Starting from 2023R2, buttons are available in the Automation Tab as in the exam
4646

4747
Extension manager
4848
~~~~~~~~~~~~~~~~~
49+
4950
The user can install or uninstall automated workflows using the extension manager.
5051
There are three options:
5152

doc/source/Getting_started/Troubleshooting.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,31 @@ Another option to install PyAEDT from the wheelhouse is to download the followin
5454
Run this script directly from AEDT and pass the wheelhouse file name as an argument.
5555

5656

57+
Error installing PyAEDT panels in AEDT
58+
--------------------------------------
59+
60+
Sometimes, the PyAEDT installer may fail when adding panels to AEDT.
61+
62+
This is typically caused by insufficient write permissions to your PersonalLib directory.
63+
64+
.. image:: ../Resources/toolkit_manager_3.png
65+
:width: 800
66+
:alt: PyAEDT toolkit manager 3
67+
68+
If the virtual environment was successfully created, you can first activate it, and then you manually register the toolkit panels using the following command:
69+
70+
.. code::
71+
72+
from ansys.aedt.core.extensions.installer.pyaedt_installer import add_pyaedt_to_aedt
73+
add_pyaedt_to_aedt(“your_aedt_version", r“path_to_personalib")
74+
75+
If you need to restart the setup from scratch, follow these steps:
76+
77+
- Delete the virtual environment folder. On Windows: located in your APPDATA directory. On Linux: located in your HOME directory.
78+
79+
- Delete the Toolkits directory in your PersonalLib folder.
80+
81+
These steps remove any existing configurations and allow you to perform a clean installation.
5782

5883

5984
Run PyAEDT
-12.7 KB
Loading
7.4 KB
Loading

doc/source/User_guide/extensions.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Extension manager
2-
=================
1+
Extensions
2+
==========
33

44
Extensions provide a simplified graphical user interface (GUI) to perform automated workflows in AEDT, they are generally tool-specific and are therefore only accessible given the appropriate context.
55
In AEDT, you can use the `Extension manager <https://aedt.docs.pyansys.com/version/stable/Getting_started/Installation.html#extension-manager>`_ to add or remove extensions.
@@ -267,6 +267,15 @@ Here are some links to existing toolkits:
267267
- Hfss: `Antenna Wizard <https://github.com/ansys/pyaedt-toolkits-antenna>`_.
268268
- Maxwell 3D: `Magnet Segmentation Wizard <https://github.com/ansys/magnet-segmentation-toolkit>`_.
269269

270+
Now, you need to download the installer from the Releases section of each toolkit.
271+
You can access it by clicking the "Install" button in the corresponding repository.
272+
273+
After installing it, you can add the toolkit to AEDT as a Custom extension by pointing to the .exe file.
274+
275+
.. image:: ../Resources/toolkit_manager_3.png
276+
:width: 500
277+
:alt: PyAEDT toolkit manager 3
278+
270279

271280
Custom extensions
272281
-----------------

doc/source/User_guide/pyaedt_extensions_doc/project/kernel_convert.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ with the use of a simple script.
77

88
This script is compatible with AEDT files, as well as A3DCOMP files (including encrypted 3DComponents).
99

10-
You can access the extension from the icon created on the **Automation** tab using the Extension Manager.
11-
1210
The following image shows the extension user interface:
1311

1412
.. image:: ../../../_static/extensions/kernel_convert_ui.png
@@ -39,7 +37,7 @@ the generated 2025R1 version (with the Parasolid Kernel) files.
3937
:width: 800
4038
:alt: Generated Files During Kernel Conversion
4139

42-
You can also launch the extension user interface from the terminal:
40+
You can launch the extension user interface from the terminal, you can find the script in the PyAEDT installation:
4341

4442
.. code::
4543

doc/source/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ PyAEDT documentation |version|
44
**Useful links**:
55
`Installation <https://aedt.docs.pyansys.com/version/stable/Getting_started/Installation.html>`_ |
66
`Source Repository <https://github.com/ansys/pyaedt>`_ |
7-
`Issues <https://github.com/ansys/pyaedt/issues>`_
7+
`Issues <https://github.com/ansys/pyaedt/issues>`_ |
8+
`Extensions <https://aedt.docs.pyansys.com/version/stable/User_guide/extensions.html>`_
89

910
.. figure:: _static/logo.png
1011
:align: center

src/ansys/aedt/core/extensions/circuit/toolkits_catalog.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ name = "Schematic Importer"
33
script = "import_schematic.py"
44
icon = "images/large/schematic.png"
55
template = "run_pyaedt_toolkit_script"
6-
pip = ""
Binary file not shown.
Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,27 @@
11
[AntennaWizard]
2-
name = "Antenna Wizard"
3-
script = "ansys/aedt/toolkits/antenna/run_toolkit.py"
4-
icon = "images/large/antenna.png"
5-
template = "run_pyaedt_toolkit_script"
6-
pip = "ansys-aedt-toolkits-antenna"
7-
package = "ansys.aedt.toolkits.antenna"
2+
name = "Antenna Toolkit"
3+
url = "https://aedt.antenna.toolkit.docs.pyansys.com/version/stable/getting_started/installation.html"
84

95
[PushfromTransient]
106
name = "Push Excitation from transient data"
117
script = "push_excitation_from_file.py"
128
icon = "images/large/push.png"
139
template = "run_pyaedt_toolkit_script"
14-
pip = ""
15-
16-
[PointCloudGenerator]
17-
name = "Point Cloud Generator"
18-
script = "points_cloud.py"
19-
icon = "images/large/cloud.png"
20-
template = "run_pyaedt_toolkit_script"
21-
pip = ""
2210

2311
[ChokeDesigner]
2412
name = "Choke Designer"
2513
script = "choke_designer.py"
2614
icon = "images/large/choke.png"
2715
template = "run_pyaedt_toolkit_script"
28-
pip = ""
2916

3017
[ShieldingEffectiveness]
3118
name = "Shielding Effectiveness"
3219
script = "shielding_effectiveness.py"
3320
icon = "images/large/shielding.png"
3421
template = "run_pyaedt_toolkit_script"
35-
pip = ""
3622

3723
[MoveIt]
3824
name = "Move It"
3925
script = "move_it.py"
4026
icon = "images/large/move_it.png"
4127
template = "run_pyaedt_toolkit_script"
42-
pip = ""

src/ansys/aedt/core/extensions/hfss3dlayout/toolkits_catalog.toml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,45 @@ name = "Export to 3D"
33
script = "export_to_3d.py"
44
icon = "images/large/cad3d.png"
55
template = "run_pyaedt_toolkit_script"
6-
pip = ""
76

87
[PushfromTransient]
98
name = "Push Excitation from transient data"
109
script = "push_excitation_from_file_3dl.py"
1110
icon = "images/large/push.png"
1211
template = "run_pyaedt_toolkit_script"
13-
pip = ""
1412

1513
[ExportFiles]
1614
name = "Export Layout info"
1715
script = "export_layout.py"
1816
icon = "images/large/export.png"
1917
template = "run_pyaedt_toolkit_script"
20-
pip = ""
2118

2219
[Cutout]
2320
name = "Advanced cutout"
2421
script = "cutout.py"
2522
icon = "images/large/cutout.png"
2623
template = "run_pyaedt_toolkit_script"
27-
pip = ""
2824

2925
[Parametrize]
3026
name = "Parametrize layout"
3127
script = "parametrize_edb.py"
3228
icon = "images/large/parametrize.png"
3329
template = "run_pyaedt_toolkit_script"
34-
pip = ""
3530

3631
[ArbitraryWaveport]
3732
name = "Arbitrary Waveports"
3833
script = "generate_arbitrary_wave_ports.py"
3934
icon = "images/large/arbitrary_wave_port.png"
4035
template = "run_pyaedt_toolkit_script"
41-
pip = ""
4236

4337
[ViaClustering]
4438
name = "Via merging"
4539
script = "via_clustering_extension.py"
4640
icon = "images/large/via_merging.png"
4741
template = "run_pyaedt_toolkit_script"
48-
pip = ""
4942

5043
[PostLayoutDesignToolkit]
5144
name = "Post Layout Design Toolkit"
5245
script = "post_layout_design_toolkit.py"
5346
icon = "images/large/post_layout_design_toolkit.png"
54-
template = "run_pyaedt_toolkit_script"
55-
pip = ""
47+
template = "run_pyaedt_toolkit_script"

src/ansys/aedt/core/extensions/icepak/toolkits_catalog.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
name = "Create Power Map from CSV file"
33
script = "power_map_from_csv.py"
44
icon = "images/large/push.png"
5-
template = "run_pyaedt_toolkit_script"
6-
pip = ""
5+
template = "run_pyaedt_toolkit_script"

0 commit comments

Comments
 (0)