diff --git a/examples/00-EDB/00_EDB_Create_VIA.py b/examples/00-EDB/00_EDB_Create_VIA.py deleted file mode 100644 index 00021530549..00000000000 --- a/examples/00-EDB/00_EDB_Create_VIA.py +++ /dev/null @@ -1,104 +0,0 @@ -# --- -# jupyter: -# jupytext: -# text_representation: -# extension: .py -# format_name: percent -# format_version: '1.3' -# jupytext_version: 1.14.5 -# kernelspec: -# display_name: Python 3 -# language: python -# name: python3 -# --- - -""" -EDB: geometry creation ----------------------- -This example shows how you can use EDB to create a layout. -""" - -# %% -# ## Final expected project -# -# .. image:: ../../_static/diff_via.png -# :width: 600 -# :alt: Differential Vias. - -# %% -# ## Import EDB layout object - -# %% -import time -import os -import pyaedt - -start = time.time() - -aedb_path = os.path.join(pyaedt.generate_unique_folder_name(), pyaedt.generate_unique_name("pcb") + ".aedb") -print(aedb_path) -edb = pyaedt.Edb(edbpath=aedb_path, edbversion="2023.2") - -# %% -# ## Add stackup layers -# -# Add stackup layers. -# A stackup can be created layer by layer or imported from a csv file or xml file. - - -# %% -edb.stackup.add_layer("GND") -edb.stackup.add_layer("Diel", "GND", layer_type="dielectric", thickness="0.1mm", material="FR4_epoxy") -edb.stackup.add_layer("TOP", "Diel", thickness="0.05mm") - -# %% -# ## Create a signal net and ground planes - -# %% -points = [ - [0.0, 0], - [100e-3, 0.0], -] -edb.modeler.create_trace(points, "TOP", width=1e-3) -points = [[0.0, 1e-3], [0.0, 10e-3], [100e-3, 10e-3], [100e-3, 1e-3], [0.0, 1e-3]] -edb.modeler.create_polygon(points, "TOP") - -points = [[0.0, -1e-3], [0.0, -10e-3], [100e-3, -10e-3], [100e-3, -1e-3], [0.0, -1e-3]] -edb.modeler.create_polygon(points, "TOP") - -# %% -# ## Create vias with parametric positions - -# %% -edb.padstacks.create("MyVia") -edb.padstacks.place([5e-3, 5e-3], "MyVia") -edb.padstacks.place([15e-3, 5e-3], "MyVia") -edb.padstacks.place([35e-3, 5e-3], "MyVia") -edb.padstacks.place([45e-3, 5e-3], "MyVia") -edb.padstacks.place([5e-3, -5e-3], "MyVia") -edb.padstacks.place([15e-3, -5e-3], "MyVia") -edb.padstacks.place([35e-3, -5e-3], "MyVia") -edb.padstacks.place([45e-3, -5e-3], "MyVia") - -# %% -# ## Geometry Plot - -# %% -edb.nets.plot(None, color_by_net=True) - -# %% -# ## Stackup Plot - -# %% -edb.stackup.plot(plot_definitions="MyVia") - -# %% -# ##Save and close EDB - -# %% -if edb: - edb.save_edb() - edb.close_edb() -print("EDB saved correctly to {}. You can import in AEDT.".format(aedb_path)) -end = time.time() - start -print(end) diff --git a/examples/00-EDB/Readme.txt b/examples/00-EDB/Readme.txt deleted file mode 100644 index c7104afa4d1..00000000000 --- a/examples/00-EDB/Readme.txt +++ /dev/null @@ -1,5 +0,0 @@ -EDB examples -~~~~~~~~~~~~ -These examples use EDB (Electronics Database) with PyAEDT. -EDB is a powerful API that allows to control PCB data efficently. -You can either use EDB standalone or embedded in HFSS 3D Layout in AEDT. diff --git a/examples/Readme.txt b/examples/Readme.txt deleted file mode 100644 index 088894ba498..00000000000 --- a/examples/Readme.txt +++ /dev/null @@ -1,10 +0,0 @@ -.. _ref_example_gallery: - -Examples -======== -End-to-end examples show how you can use PyAEDT. If PyAEDT is installed -on your machine, you can download these examples as Python files or Jupyter -notebooks and run them locally. - -.. note:: - Some examples require additional Python packages.