Skip to content

Commit 6902f8d

Browse files
authored
Merge pull request #118 from ansys-internal/rename_legacy
refactored name from legacy to dotnet
2 parents ef025af + 9506960 commit 6902f8d

File tree

112 files changed

+723
-726
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+723
-726
lines changed

doc/source/api/ComponentsEdb.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The main component object is called directly from main application using the pro
1414
...
1515
1616
17-
.. currentmodule:: pyedb.legacy.edb_core.components
17+
.. currentmodule:: pyedb.dotnet.edb_core.components
1818

1919
.. autosummary::
2020
:toctree: _autosummary
@@ -28,7 +28,7 @@ Instances and definitions
2828
These classes are the containers of data management for components reference designator and definitions.
2929

3030

31-
.. currentmodule:: pyedb.legacy.edb_core.edb_data.components_data
31+
.. currentmodule:: pyedb.dotnet.edb_core.edb_data.components_data
3232

3333
.. autosummary::
3434
:toctree: _autosummary
@@ -41,9 +41,9 @@ These classes are the containers of data management for components reference des
4141

4242
.. code:: python
4343
44-
from pyedb.legacy.edb import EdbLegacy
44+
from pyedb.dotnet.edb import Edb
4545
46-
edb = EdbLegacy(myedb, edbversion="2023.1")
46+
edb = Edb(myedb, edbversion="2023.1")
4747
4848
comp = edb.components["C1"]
4949

doc/source/api/CoreEdb.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ It can be opened and edited using the ``Edb`` class.
1212
.. autosummary::
1313
:toctree: _autosummary
1414

15-
pyedb.legacy.edb.EdbLegacy
16-
pyedb.legacy.edb_core.edb_data.variables.Variable
17-
pyedb.legacy.edb_core.edb_data.edbvalue.EdbValue
15+
pyedb.dotnet.edb.Edb
16+
pyedb.dotnet.edb_core.edb_data.variables.Variable
17+
pyedb.dotnet.edb_core.edb_data.edbvalue.EdbValue
1818

1919

2020
.. code:: python
2121
22-
from pyedb.legacy.edb import EdbLegacy
22+
from pyedb.dotnet.edb import Edb
2323
2424
# this call returns the Edb class initialized on 2023 R1
25-
edb = EdbLegacy(myedb, edbversion="2023.1")
25+
edb = Edb(myedb, edbversion="2023.1")
2626
2727
...
2828
@@ -33,7 +33,7 @@ This section lists the core EDB modules for reading and writing information
3333
to AEDB files.
3434

3535

36-
.. currentmodule:: pyedb.legacy.edb_core
36+
.. currentmodule:: pyedb.dotnet.edb_core
3737

3838
.. autosummary::
3939
:toctree: _autosummary
@@ -46,7 +46,7 @@ to AEDB files.
4646

4747

4848

49-
.. currentmodule:: pyedb.legacy.edb_core.edb_data.edbvalue
49+
.. currentmodule:: pyedb.dotnet.edb_core.edb_data.edbvalue
5050

5151
.. autosummary::
5252
:toctree: _autosummary
@@ -58,7 +58,7 @@ to AEDB files.
5858

5959
.. code:: python
6060
61-
from pyedb.legacy.edb_core.edb import Edb
61+
from pyedb.dotnet.edb import Edb
6262
6363
edb = Edb(myedb, edbversion="2023.1")
6464

doc/source/api/LayerData.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ These classes are the containers of the layer and stackup manager of the EDB API
55

66
.. code:: python
77
8-
from pyedb.legacy.edb_core.edb import Edb
8+
from pyedb.dotnet.edb import Edb
99
1010
edb = Edb(myedb, edbversion="2023.1")
1111
@@ -17,7 +17,7 @@ These classes are the containers of the layer and stackup manager of the EDB API
1717
...
1818
1919
20-
.. currentmodule:: pyedb.legacy.edb_core.stackup
20+
.. currentmodule:: pyedb.dotnet.edb_core.stackup
2121

2222
.. autosummary::
2323
:toctree: _autosummary
@@ -26,7 +26,7 @@ These classes are the containers of the layer and stackup manager of the EDB API
2626
Stackup
2727

2828

29-
.. currentmodule:: pyedb.legacy.edb_core.edb_data.layer_data
29+
.. currentmodule:: pyedb.dotnet.edb_core.edb_data.layer_data
3030

3131
.. autosummary::
3232
:toctree: _autosummary

doc/source/api/NetsEdb.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The main component object is called directly from main application using the pro
55

66
.. code:: python
77
8-
from pyedb.legacy.edb_core.edb import Edb
8+
from pyedb.dotnet.edb import Edb
99
1010
edb = Edb(myedb, edbversion="2023.1")
1111
@@ -14,7 +14,7 @@ The main component object is called directly from main application using the pro
1414
...
1515
1616
17-
.. currentmodule:: pyedb.legacy.edb_core.nets
17+
.. currentmodule:: pyedb.dotnet.edb_core.nets
1818

1919
.. autosummary::
2020
:toctree: _autosummary
@@ -28,7 +28,7 @@ Net properties
2828
The following class is the container of data management for nets, extended nets and differential pairs.
2929

3030

31-
.. currentmodule:: pyedb.legacy.edb_core.edb_data.nets_data
31+
.. currentmodule:: pyedb.dotnet.edb_core.edb_data.nets_data
3232

3333
.. autosummary::
3434
:toctree: _autosummary
@@ -41,7 +41,7 @@ The following class is the container of data management for nets, extended nets
4141

4242
.. code:: python
4343
44-
from pyedb.legacy.edb_core.edb import Edb
44+
from pyedb.dotnet.edb import Edb
4545
4646
edb = Edb(myedb, edbversion="2023.1")
4747

doc/source/api/PadstackEdb.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The main padstack object is called directly from main application using the prop
55

66
.. code:: python
77
8-
from pyedb.legacy.edb_core.edb import Edb
8+
from pyedb.dotnet.edb import Edb
99
1010
edb = Edb(myedb, edbversion="2023.1")
1111
@@ -20,7 +20,7 @@ The main padstack object is called directly from main application using the prop
2020
...
2121
2222
23-
.. currentmodule:: pyedb.legacy.edb_core.padstack
23+
.. currentmodule:: pyedb.dotnet.edb_core.padstack
2424

2525
.. autosummary::
2626
:toctree: _autosummary
@@ -34,7 +34,7 @@ Instances and definitions
3434
These classes are the containers of data management for padstacks instances and padstack definitions.
3535

3636

37-
.. currentmodule:: pyedb.legacy.edb_core.edb_data.padstacks_data
37+
.. currentmodule:: pyedb.dotnet.edb_core.edb_data.padstacks_data
3838

3939
.. autosummary::
4040
:toctree: _autosummary

doc/source/api/PortsEdb.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ These classes are the containers of ports methods of the EDB for both HFSS and S
77

88
.. code:: python
99
10-
from pyedb.legacy.edb_core.edb import Edb
10+
from pyedb.dotnet.edb import Edb
1111
1212
edb = Edb(myedb, edbversion="2023.1")
1313
@@ -16,7 +16,7 @@ These classes are the containers of ports methods of the EDB for both HFSS and S
1616
...
1717
1818
19-
.. currentmodule:: pyedb.legacy.edb_core.edb_data.ports
19+
.. currentmodule:: pyedb.dotnet.edb_core.edb_data.ports
2020

2121
.. autosummary::
2222
:toctree: _autosummary

doc/source/api/PrimitivesEdb.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Primitives are planes, lines, rectangles, and circles.
66

77
.. code:: python
88
9-
from pyedb.legacy.edb_core.edb import Edb
9+
from pyedb.dotnet.edb import Edb
1010
1111
edb = Edb(myedb, edbversion="2023.1")
1212
@@ -16,7 +16,7 @@ Primitives are planes, lines, rectangles, and circles.
1616
1717
...
1818
19-
.. currentmodule:: pyedb.legacy.edb_core.layout
19+
.. currentmodule:: pyedb.dotnet.edb_core.layout
2020

2121
.. autosummary::
2222
:toctree: _autosummary
@@ -30,7 +30,7 @@ Primitives properties
3030
---------------------
3131
These classes are the containers of data management for primitives and arcs.
3232

33-
.. currentmodule:: pyedb.legacy.edb_core.edb_data.primitives_data
33+
.. currentmodule:: pyedb.dotnet.edb_core.edb_data.primitives_data
3434

3535
.. autosummary::
3636
:toctree: _autosummary
@@ -43,7 +43,7 @@ These classes are the containers of data management for primitives and arcs.
4343

4444
.. code:: python
4545
46-
from pyedb.legacy.edb_core.edb import Edb
46+
from pyedb.dotnet.edb import Edb
4747
4848
edb = Edb(myedb, edbversion="2023.1")
4949

doc/source/api/SiWave.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ accessed from PyEDB in Windows only. All setups can be implemented through EDB A
1111
:target: https://www.ansys.com/products/electronics/ansys-siwave
1212

1313

14-
.. currentmodule:: pyedb.legacy.edb_core
14+
.. currentmodule:: pyedb.dotnet.edb_core
1515

1616
.. autosummary::
1717
:toctree: _autosummary
@@ -21,7 +21,7 @@ accessed from PyEDB in Windows only. All setups can be implemented through EDB A
2121

2222
.. code:: python
2323
24-
from pyedb.legacy.edb_core.siwave import EdbSiwave
24+
from pyedb.dotnet.edb_core.siwave import EdbSiwave
2525
2626
# this call returns the Edb class initialized on 2023 R1
2727
siwave = EdbSiwave(specified_version="2023.1")

doc/source/api/SimulationConfigurationEdb.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Simulation configuration
33
These classes are the containers of simulation configuration constructors for the EDB.
44

55

6-
.. currentmodule:: pyedb.legacy.edb_core.edb_data.simulation_configuration
6+
.. currentmodule:: pyedb.dotnet.edb_core.edb_data.simulation_configuration
77

88
.. autosummary::
99
:toctree: _autosummary
@@ -18,7 +18,7 @@ These classes are the containers of simulation configuration constructors for th
1818

1919
.. code:: python
2020
21-
from pyedb.legacy.edb_core.edb import Edb
21+
from pyedb.dotnet.edb import Edb
2222
2323
edbapp = Edb(myedb, edbversion="2023.1")
2424

doc/source/api/SimulationEdb.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ These classes are the containers of ``setup`` classes in EDB for both HFSS and S
55

66
.. code:: python
77
8-
from pyedb.legacy.edb_core.edb import Edb
8+
from pyedb.dotnet.edb import Edb
99
1010
edb = Edb(myedb, edbversion="2023.1")
1111
@@ -20,7 +20,7 @@ These classes are the containers of ``setup`` classes in EDB for both HFSS and S
2020
2121
2222
23-
.. currentmodule:: pyedb.legacy.edb_core.edb_data
23+
.. currentmodule:: pyedb.dotnet.edb_core.edb_data
2424

2525
.. autosummary::
2626
:toctree: _autosummary

doc/source/api/SourcesEdb.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ These classes are the containers of sources methods of the EDB for both HFSS and
55

66
.. code:: python
77
8-
from pyedb.legacy.edb_core.edb import Edb
8+
from pyedb.dotnet.edb import Edb
99
1010
edb = Edb(myedb, edbversion="2023.1")
1111
@@ -14,7 +14,7 @@ These classes are the containers of sources methods of the EDB for both HFSS and
1414
...
1515
1616
17-
.. currentmodule:: pyedb.legacy.edb_core.edb_data.sources
17+
.. currentmodule:: pyedb.dotnet.edb_core.edb_data.sources
1818

1919
.. autosummary::
2020
:toctree: _autosummary

doc/source/api/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Example:
2222

2323
.. code:: python
2424
25-
from pyedb import Edb
25+
from pyedb.dotnet.edb import Edb
2626
2727
edb = Edb("my_project.aedb", edbversion="2023.1")
2828
edb.core_components.components["R1"].r_value = 40

doc/source/getting_started/quickcode.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@ Explicit PyEDB declaration and error management
4343
4444
# Start EDB
4545
46-
from pyedb.legacy.edb_core.edb import EdbLegacy
46+
from pyedb.dotnet.edb import Edb
4747
4848
edb_file = pyedb.layout_examples.ANSYS - HSD_V1.aedb
49-
edb = EdbLegacy(edbversion="2023.2", edbpath=edb_file)
49+
edb = Edb(edbversion="2023.2", edbpath=edb_file)
5050
5151
5252
Variables
5353
~~~~~~~~~
5454

5555
.. code:: python
5656
57-
from pyedb.legacy.edb_core.edb import EdbLegacy
57+
from pyedb.dotnet.edb import Edb
5858
5959
edb_file = pyedb.layout_examples.ANSYS - HSD_V1.aedb
60-
edb = EdbLegacy(edbversion="2023.2", edbpath=edb_file)
60+
edb = Edb(edbversion="2023.2", edbpath=edb_file)
6161
edb["dim"] = "1mm" # design variable
6262
edb["$dim"] = "1mm" # project variable

doc/source/user_guide/build_simulation_project/build_ac_project.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This section describes how to create SYZ simulation setup for Siwave using Simul
1111
1212
1313
14-
from pyedb.legacy.edb_core.edb import EdbLegacy
14+
from pyedb.dotnet.edb import Edb
1515
from pyedb.generic.constants import SolverType
1616
from pyedb.generic.general_methods import generate_unique_folder_name
1717
import pyedb.misc.downloads as downloads
@@ -26,7 +26,7 @@ This section describes how to create SYZ simulation setup for Siwave using Simul
2626
)
2727
2828
# loading EDB
29-
edbapp = EdbLegacy(edbpath=targetfile, edbversion="2023.2")
29+
edbapp = Edb(edbpath=targetfile, edbversion="2023.2")
3030
3131
simconfig = edbapp.new_simulation_configuration()
3232
simconfig.solver_type = SolverType.SiwaveSYZ

doc/source/user_guide/build_simulation_project/build_signal_integrity_project.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This section shows a simple example to create HFSS coaxial port on a component.
1010
.. code:: python
1111
1212
13-
from pyedb.legacy.edb import EdbLegacy
13+
from pyedb.dotnet.edb import Edb
1414
from pyedb.generic.general_methods import generate_unique_folder_name
1515
import pyedb.misc.downloads as downloads
1616
@@ -22,7 +22,7 @@ This section shows a simple example to create HFSS coaxial port on a component.
2222
targetfile = downloads.download_file("edb/ANSYS-HSD_V1.aedb", destination=temp_folder)
2323
2424
# loading EDB
25-
edbapp = EdbLegacy(edbpath=targetfile, edbversion="2023.2")
25+
edbapp = Edb(edbpath=targetfile, edbversion="2023.2")
2626
2727
sim_setup = edbapp.new_simulation_configuration()
2828
sim_setup.signal_nets = [

doc/source/user_guide/build_simulation_project/cutout.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ how to clip a design based on nets selection.
1313
1414
1515
16-
from pyedb.legacy.edb import EdbLegacy
16+
from pyedb.dotnet.edb import Edb
1717
from pyedb.generic.general_methods import generate_unique_folder_name
1818
import pyedb.misc.downloads as downloads
1919
@@ -26,7 +26,7 @@ how to clip a design based on nets selection.
2626
targetfile = downloads.download_file("edb/ANSYS-HSD_V1.aedb", destination=temp_folder)
2727
2828
# loading EDB
29-
edbapp = EdbLegacy(edbpath=targetfile, edbversion="2023.2")
29+
edbapp = Edb(edbpath=targetfile, edbversion="2023.2")
3030
3131
# selecting signal nets to evaluate the extent for clipping the layout
3232
signal_nets = [

doc/source/user_guide/components/create_resistor_on_pin.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ This section describes how to create resistor on pins:
1111
1212
1313
14-
from pyedb.legacy.edb import EdbLegacy
14+
from pyedb.dotnet.edb import Edb
1515
from pyedb.generic.general_methods import generate_unique_folder_name
1616
import pyedb.misc.downloads as downloads
1717
1818
temp_folder = generate_unique_folder_name()
1919
targetfile = downloads.download_file("edb/ANSYS-HSD_V1.aedb", destination=temp_folder)
20-
edbapp = EdbLegacy(edbpath=targetfile, edbversion="2023.2")
20+
edbapp = Edb(edbpath=targetfile, edbversion="2023.2")
2121
2222
pins = edbapp.components.get_pin_from_component("U1")
2323
resistor = edbapp.siwave.create_resistor_on_pin(pins[302], pins[10], 40, "RST4000")

0 commit comments

Comments
 (0)