Open pyAnsysUser opened 1 year ago
Hi @pyAnsysUser, thanks for your feedback, we will have a look.
I will add error handling to avoid throwing errors like this. I assume it failed to open Edb project probably because of wrong path ?
@pyAnsysUser I recommend using this method: place_in_layout_3d_placement instead of place_in_layout. The main reason is using 3D placement is safer to preserve the layer stackup integrity especially when the disign is flipped. And the expected argument is an Edb object not the Cell.
@svandenb-dev I agree on the expected argument, but I think I was having trouble getting it to work with the edb too; in either case, the input is copied and pasted from the documentation It's not clear to me the differences between the place in layout options ( place_instance, place_in_layout, place_in_layout_3d_placement ) and I'm also not sure that this is even the right one to use; I want to do the same "merge package/rdl" process that is available in the siwave gui; are any of these the right method to use for this?
@pyAnsysUser I agree these 3 methods can be confusing. We will check to add more details in the doc. For you need, merging package-rdl please use the last one place_in_layout_3d_placement. Customers are already using it and feedbacks we got is that's working well.
@svandenb-dev thanks, I'll check it out. Is there an example package/board combo in the example ansys files I can use as a second option to test my code? The result I get when using this method is it looks like there are two cells, one with the package and one with the board. When I import the edb into siwave GUI it asks me to select which cell it should open. If I import into AEDT I can see the package in the board cell, but the artwork seems hirearchical and I cannot select the package artwork. The stackup layers are unchanged in both the package cell and pcb cell.
Before submitting the issue
Description of the bug
pyaedt.edb_core.dotnet.database.CellClassDotNet has no attribute active_cell
Expected: True when succeed False if not.
Actual: PyAEDT ERROR: ATTRIBUTE ERROR on place_in_layout PyAEDT ERROR: Attribute not present PyAEDT ERROR: File "(...) pyaedt\edb_core\stackup.py", line 1206, in place_in_layout
Steps To Reproduce
Which Operating System are you using?
Windows
Which Python version are you using?
3.10
Installed packages
ansys-pythonnet==3.1.0rc2 cffi==1.16.0 clr-loader==0.2.6 numpy==1.26.1 plumbum==1.8.2 psutil==5.9.6 pyaedt==0.7.2 pycparser==2.21 pywin32==306 rpyc==5.3.1
Note: python version 3.11 but selection not available