-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/draft_filtersolutions
- Loading branch information
Showing
13 changed files
with
175 additions
and
9 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
Binary file not shown.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,36 @@ | ||
Extensions | ||
========== | ||
|
||
Extensions provide a simplified interface to perform automated workflows in AEDT. | ||
In AEDT, you can use the Extension Manager to add or remove extensions. | ||
For more information, see `Extension Manager <https://aedt.docs.pyansys.com/version/stable/Getting_started/Installation.html#extension-manager>`_. | ||
|
||
Extensions are generally tool-specific and are therefore only accessible given the appropriate context. The following sections provide further clarification. | ||
|
||
You can launch extensions in standalone mode from the console or a Python script. | ||
|
||
Project extensions | ||
================== | ||
|
||
Project extension apply to all extensions that are applicable for all AEDT applications. | ||
|
||
.. grid:: 2 | ||
|
||
.. grid-item-card:: Import Nastran | ||
:link: pyaedt_extensions_doc/project | ||
:link-type: doc | ||
|
||
Import a Nastran or STL file in any 3D modeler application. | ||
|
||
.. toctree:: | ||
:hidden: | ||
:maxdepth: 2 | ||
|
||
pyaedt_extensions_doc/project | ||
|
||
HFSS extensions | ||
=============== | ||
|
||
|
||
HFSS 3D Layout extensions | ||
Check warning on line 35 in doc/source/User_guide/extensions.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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,51 @@ | ||
Import Nastran | ||
============== | ||
|
||
You can import a Nastran or STL file in any 3D modeler. You can also preview the imported file and decimate it prior to import. | ||
|
||
You can access the extension from the icon created on the **Automation** tab using the Extension Manager. | ||
|
||
The following image shows the extension user interface: | ||
|
||
.. image:: import_nastran_ui.png | ||
:width: 800 | ||
:alt: Import Nastran UI | ||
|
||
You can also launch the extension user interface from the terminal: | ||
|
||
.. code:: | ||
SET PYAEDT_SCRIPT_PORT=50051 | ||
SET PYAEDT_SCRIPT_VERSION=2024.1 | ||
python.exe path/to/pyaedt/workflows/project/import_nastran.py | ||
The available arguments are: ``file_path``, ``planar``, ``lightweight``, and ``decimate``. | ||
You can obtain these arguments from the help with this command: | ||
|
||
.. code:: | ||
python.exe path/to/pyaedt/workflows/project/import_nastran.py --help | ||
This code shows how to pass the input file as an argument, which doesn't launch the user interface: | ||
|
||
.. code:: | ||
export PYAEDT_SCRIPT_PORT=50051 | ||
export PYAEDT_SCRIPT_VERSION=2024.1 | ||
python.exe path/to/pyaedt/workflows/project/import_nastran.py --file_path="my_file.stl" | ||
Finally, this code shows how you can run the extension directly from a Python script: | ||
|
||
.. code:: python | ||
import pyaedt | ||
import os | ||
from pyaedt.workflows.project.import_nastran import main | ||
file_path = "my_file.stl" | ||
hfss = pyaedt.Hfss() | ||
# Specify the AEDT session to connect | ||
os.environ["PYAEDT_SCRIPT_PORT"] = str(hfss.desktop_class.port) | ||
os.environ["PYAEDT_SCRIPT_VERSION"] = hfss.desktop_class.aedt_version_id | ||
# Launch extension | ||
main({"file_path": file_path, "lightweight": True, "decimate": 0.0, "planar": True, "is_test": False}) | ||
This file was deleted.
Oops, something went wrong.
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
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