Skip to content

Regarding the specification of the function to obtain the ID of the component placed in the schematic. #4650

Closed Answered by Samuelopez-ansys
homma26153190 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @homma26153190 ,

These methods has been deprecated months ago, and finally in 0.9.0 release, they are not maintained anymore.

    with Desktop(specified_version="2023.1", non_graphical=False, new_desktop_session=True, close_on_exit=True):
        aedtapp = Circuit("AutomatedProject")

        work_dir = os.getcwd()
        tsfile_path = os.path.join(work_dir, tsfile)
        filename = tsfile.split(".")[0]
    
        comp = aedtapp.modeler.components.create_touchstone_component(tsfile_path)
        
        if any(comp.component_info):
            instance_name = comp.component_info['InstanceName']
            component_name = comp.component_info['Component']
            refdes_value…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by Samuelopez-ansys
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