Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a name attibute for the method create_network_blocks in Icepak #5994

Closed
chs513 opened this issue Apr 2, 2025 · 1 comment
Closed

Add a name attibute for the method create_network_blocks in Icepak #5994

chs513 opened this issue Apr 2, 2025 · 1 comment
Labels
enhancement New features or code improvements

Comments

@chs513
Copy link

chs513 commented Apr 2, 2025

Description of the feature

How can I get the name of the network_2R? Please add a name attribute for the method create_network_blocks.

from ansys.aedt.core import Icepak

ipk = Icepak()

box1 = ipk.modeler.create_box([0, 0, 0], [15, 15, 1], 'box1')

box2 = ipk.modeler.create_box([6, 6, 1], [3, 3, 1], 'box2')

flag = 2
if flag == 1:
    network_2R = ipk.create_two_resistor_network_block(
        object_name=box1.name,
        pcb=box2.name,
        power='0.1W',
        rjb=1,
        rjc=2
    )
    print(network_2R.name)
elif flag == 2:
    network_2R = ipk.create_network_blocks(input_list=[[box1.name, 1, 2, 0.1]],
                              gravity_dir=2,
                              top=0
                              )
    print(network_2R)

Steps for implementing the feature

No response

Useful links and references

No response

@chs513 chs513 added the enhancement New features or code improvements label Apr 2, 2025
@lorenzovecchietti
Copy link
Contributor

If you have questions, please open a discussion and not a bug. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features or code improvements
Projects
None yet
Development

No branches or pull requests

2 participants