Skip to content

How to import .amat file for EDB use in Python? #635

Answered by hui-zhou-a
bchapman23 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @bchapman23, you can load .amat by
edb.materials.load_amat(mat_file)

Alternatively, you can use edb.configuration.load. Here is a complete example

# Import Materials

This example shows how to import materials.

### Import the required packages

+

import json
from pathlib import Path
import tempfile

from IPython.display import display
import pandas as pd
from pyaedt.downloads import download_file

from pyedb import Edb

AEDT_VERSION = "2024.1"
NG_MODE = False

-

### Download the example PCB data.

temp_folder = tempfile.TemporaryDirectory(suffix=".ansys")
file_edb = download_file(source="edb/ANSYS-HSD_V1.aedb", destination=temp_folder.name)

### Load example layout.

edbapp = Edb(file_edb, edbv…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bchapman23
Comment options

Answer selected by bchapman23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants