Hfss3dLayout#

class ansys.aedt.core.hfss3dlayout.Hfss3dLayout(project=None, design=None, solution_type=None, setup=None, version=None, non_graphical=False, new_desktop=False, close_on_exit=False, student_version=False, machine='', port=0, aedt_process_id=None, ic_mode=None, remove_lock=False)#

Provides the HFSS 3D Layout application interface.

This class inherits all objects that belong to HFSS 3D Layout, including EDB API queries.

Parameters:
projectstr, optional

Name of the project to select or the full path to the project or AEDTZ archive to open or the path to the aedb folder or edb.def file. The default is None, in which case an attempt is made to get an active project. If no projects are present, an empty project is created.

designstr, optional

Name of the design to select. The default is None, in which case an attempt is made to get an active design. If no designs are present, an empty design is created.

solution_typestr, optional

Solution type to apply to the design. The default is None, in which case the default type is applied.

setupstr, optional

Name of the setup to use as the nominal. The default is None, in which case the active setup is used or nothing is used.

versionstr, int, float, optional

Version of AEDT to use. The default is None, in which case the active version or latest installed version is used. Examples of input values are 232, 23.2,``2023.2``,``”2023.2”``.

non_graphicalbool, optional

Whether to launch AEDT in non-graphical mode. The default is True`, in which case AEDT is launched in graphical mode. This parameter is ignored when a script is launched within AEDT.

new_desktopbool, optional

Whether to launch an instance of AEDT in a new thread, even if another instance of the specified_version is active on the machine. The default is False.

close_on_exitbool, optional

Whether to release AEDT on exit. The default is False.

student_versionbool, optional

Whether to open the AEDT student version. The default is False.

machinestr, optional

Machine name to connect the oDesktop session to. This works only in 2022 R2 or later. The remote server must be up and running with the command “ansysedt.exe -grpcsrv portnum”. If the machine is “localhost”. the server also starts if not present.

portint, optional

Port number on which to start the oDesktop communication on an already existing server. This parameter is ignored when creating a new server. It works only in 2022 R2 or later. The remote server must be up and running with the command “ansysedt.exe -grpcsrv portnum”.

aedt_process_idint, optional

Process ID for the instance of AEDT to point PyAEDT at. The default is None. This parameter is only used when new_desktop = False.

ic_modebool, optional

Whether to set the design to IC mode or not. The default is None, which means to retain the existing setting.

remove_lockbool, optional

Whether to remove lock to project before opening it or not. The default is False, which means to not unlock the existing project if needed and raise an exception.

Examples

Create an Hfss3dLayout object and connect to an existing HFSS design or create a new HFSS design if one does not exist.

>>> from ansys.aedt.core import Hfss3dLayout
>>> aedtapp = Hfss3dLayout()

Create an Hfss3dLayout object and link to a project named projectname. If this project does not exist, create one with this name.

>>> aedtapp = Hfss3dLayout(projectname)

Create an Hfss3dLayout object and link to a design named designname in a project named projectname.

>>> aedtapp = Hfss3dLayout(projectname,designame)

Create an Hfss3dLayout object and open the specified project.

>>> aedtapp = Hfss3dLayout("myfile.aedt")

Create an AEDT 2023 R1 object and then create a Hfss3dLayout object and open the specified project.

>>> aedtapp = Hfss3dLayout(version="2023.1", project="myfile.aedt")

Create an instance of Hfss3dLayout from an Edb

>>> import ansys.aedt.core
>>> edb_path = "/path/to/edbfile.aedb"
>>> edb = ansys.aedt.core.Edb(edb_path, edbversion=231)
>>> edb.stackup.import_stackup("stackup.xml")  # Import stackup. Manipulate edb, ...
>>> edb.save_edb()
>>> edb.close_edb()
>>> aedtapp = ansys.aedt.core.Hfss3dLayout(version=231, project=edb_path)

Methods

Hfss3dLayout.activate_variable_optimization(name)

Activate optimization analysis for a variable and optionally set up ranges.

Hfss3dLayout.activate_variable_sensitivity(name)

Activate sensitivity analysis for a variable and optionally set up ranges.

Hfss3dLayout.activate_variable_statistical(name)

Activate statitistical analysis for a variable and optionally set up ranges.

Hfss3dLayout.activate_variable_tuning(name)

Activate tuning analysis for a variable and optionally set up ranges.

Hfss3dLayout.add_error_message(text[, level])

Add a type 0 "Error" message to either the global, active project, or active design level of the message mmanager tree.

Hfss3dLayout.add_from_toolkit(toolkit[, draw])

Add a new toolkit to the current application.

Hfss3dLayout.add_info_message(text[, level])

Add a type 0 "Info" message to either the global, active project, or active design level of the message manager tree.

Hfss3dLayout.add_warning_message(text[, level])

Add a type 0 "Warning" message to either the global, active project, or active design level of the message manager tree.

Hfss3dLayout.analyze([setup, cores, tasks, ...])

Solve the active design.

Hfss3dLayout.analyze_setup([name, cores, ...])

Analyze a design setup.

Hfss3dLayout.archive_project([project_path, ...])

Archive the AEDT project and add a message.

Hfss3dLayout.autosave_disable()

Disable autosave in AEDT.

Hfss3dLayout.autosave_enable()

Enable autosave in AEDT.

Hfss3dLayout.change_automatically_use_causal_materials([...])

Enable or disable the automatic use of causal materials for lossy dielectrics.

Hfss3dLayout.change_design_settings(settings)

Set HFSS 3D Layout Design Settings.

Hfss3dLayout.change_material_override([...])

Enable or disable the material override in the project.

Hfss3dLayout.change_options([color_by_net])

Change options for an existing layout.

Hfss3dLayout.change_property(aedt_object, ...)

Change a property.

Hfss3dLayout.change_validation_settings([...])

Update the validation design settings.

Hfss3dLayout.check_beta_option_enabled(...)

Check if a beta option is enabled.

Hfss3dLayout.check_if_project_is_loaded(...)

Check if a project path is already loaded in active Desktop.

Hfss3dLayout.clean_proj_folder([directory, name])

Delete a project folder.

Hfss3dLayout.close_desktop()

Close AEDT and release it.

Hfss3dLayout.close_project([name, save])

Close an AEDT project.

Hfss3dLayout.copy_design_from(project, design)

Copy a design from a project into the active project.

Hfss3dLayout.copy_project(destination, name)

Copy the project to another destination.

Hfss3dLayout.create_coax_port(via[, ...])

Create a coax port.

Hfss3dLayout.create_dataset(name, x, y[, z, ...])

Create a dataset.

Hfss3dLayout.create_dataset1d_design(name, x, y)

Create a design dataset.

Hfss3dLayout.create_dataset1d_project(name, x, y)

Create a project dataset.

Hfss3dLayout.create_dataset3d(name, x, y[, ...])

Create a 3D dataset.

Hfss3dLayout.create_differential_port(...[, ...])

Create a differential port.

Hfss3dLayout.create_edge_port(assignment, ...)

Create an edge port.

Hfss3dLayout.create_linear_count_sweep(...)

Create a sweep with the specified number of points.

Hfss3dLayout.create_linear_step_sweep(setup, ...)

Create a sweep with the specified frequency step.

Hfss3dLayout.create_new_project(name)

Create a project within AEDT.

Hfss3dLayout.create_output_variable(...[, ...])

Create or modify an output variable.

Hfss3dLayout.create_pec_on_component_by_nets(...)

Create a PEC connection on a component for a list of nets.

Hfss3dLayout.create_pin_port(name[, x, y, ...])

Create a pin port.

Hfss3dLayout.create_ports_on_component_by_nets(...)

Create the ports on a component for a list of nets.

Hfss3dLayout.create_scattering([plot, ...])

Create a scattering report.

Hfss3dLayout.create_setup([name, setup_type])

Create a setup.

Hfss3dLayout.create_single_point_sweep(...)

Create a sweep with a single frequency point.

Hfss3dLayout.create_wave_port(assignment, ...)

Create a single-ended wave port.

Hfss3dLayout.create_wave_port_from_two_conductors([...])

Create a wave port.

Hfss3dLayout.dataset_exists(name[, ...])

Check if a dataset exists.

Hfss3dLayout.deactivate_variable_optimization(name)

Deactivate the optimization analysis for a variable.

Hfss3dLayout.deactivate_variable_sensitivity(name)

Deactivate the sensitivity analysis for a variable.

Hfss3dLayout.deactivate_variable_statistical(name)

Deactivate the statistical analysis for a variable.

Hfss3dLayout.deactivate_variable_tuning(name)

Deactivate the tuning analysis for a variable.

Hfss3dLayout.delete_design([name, ...])

Delete a design from the current project.

Hfss3dLayout.delete_port(name)

Delete a port.

Hfss3dLayout.delete_project(name)

Delete a project.

Hfss3dLayout.delete_separator(name)

Delete a separator from either the active project or a design.

Hfss3dLayout.delete_setup(name)

Delete a setup.

Hfss3dLayout.delete_unused_variables()

Delete design and project unused variables.

Hfss3dLayout.delete_variable(name)

Delete a variable.

Hfss3dLayout.design_variation([variation])

Generate a string to specify a desired variation.

Hfss3dLayout.dissolve_component(component)

Dissolve a component and remove it from 3D Layout.

Hfss3dLayout.duplicate_design(name[, ...])

Copy a design to a new name.

Hfss3dLayout.edit_cosim_options([...])

Edit cosimulation options.

Hfss3dLayout.edit_hfss_extents([...])

Edit HFSS 3D Layout extents.

Hfss3dLayout.edit_notes(text)

Edit notes.

Hfss3dLayout.edit_setup(name, properties)

Modify a setup.

Hfss3dLayout.edit_source_from_file(source, ...)

Edit a source from file data.

Hfss3dLayout.enable_rigid_flex()

Turn on or off the rigid flex of a board with bending if available.

Hfss3dLayout.evaluate_expression(expression)

Evaluate a valid string expression and return the numerical value in SI units.

Hfss3dLayout.export_3d_model([output_file])

Export the Ecad model to a 3D file.

Hfss3dLayout.export_convergence(setup[, ...])

Export a solution convergence to a file.

Hfss3dLayout.export_design_preview_to_jpg(...)

Export design preview image to a JPG file.

Hfss3dLayout.export_mesh_stats(setup[, ...])

Export mesh statistics to a file.

Hfss3dLayout.export_parametric_results(...)

Export a list of all parametric variations solved for a sweep to a CSV file.

Hfss3dLayout.export_profile(setup[, ...])

Export a solution profile to a PROF file.

Hfss3dLayout.export_results([analyze, ...])

Export all available reports to a file, including profile, and convergence and sNp when applicable.

Hfss3dLayout.export_rl_matrix(matrix_name, ...)

Export R/L matrix after solving.

Hfss3dLayout.export_touchstone([setup, ...])

Export a Touchstone file.

Hfss3dLayout.export_touchstone_on_completion([...])

Enable or disable the automatic export of the touchstone file after completing frequency sweep.

Hfss3dLayout.export_variables_to_csv(output_file)

Export design properties, project variables, or both to a CSV file.

Hfss3dLayout.generate_temp_project_directory(name)

Generate a unique directory string to save a project to.

Hfss3dLayout.generate_unique_setup_name([name])

Generate a new setup with a unique name.

Hfss3dLayout.get_all_insertion_loss_list([...])

Get a list of all insertion losses from two lists of excitations (driver and receiver).

Hfss3dLayout.get_all_return_loss_list([...])

Get a list of all return losses for a list of excitations.

Hfss3dLayout.get_dcir_element_data_current_source(setup)

Get dcir element data current source.

Hfss3dLayout.get_dcir_element_data_loop_resistance(setup)

Get dcir element data loop resistance.

Hfss3dLayout.get_dcir_element_data_via(setup)

Get dcir element data via.

Hfss3dLayout.get_dcir_solution_data(setup[, ...])

Retrieve dcir solution data.

Hfss3dLayout.get_differential_pairs()

Get the list defined differential pairs.

Hfss3dLayout.get_evaluated_value(name[, units])

Retrieve the evaluated value of a design property or project variable in SI units if no unit is provided.

Hfss3dLayout.get_fext_xtalk_list([drivers, ...])

Geta list of all the far end XTalks from two lists of excitations (driver and receiver).

Hfss3dLayout.get_model_from_mesh_results([...])

Get the path for the parasolid file in the result folder.

Hfss3dLayout.get_module(module_name)

Aedt Module object.

Hfss3dLayout.get_monitor_data()

Check and get monitor data of an existing analysis.

Hfss3dLayout.get_next_xtalk_list([drivers, ...])

Get a list of all the near end XTalks from a list of excitations (driver and receiver).

Hfss3dLayout.get_nominal_variation([with_values])

Retrieve the nominal variation.

Hfss3dLayout.get_object_material_properties([...])

Retrieve the material properties for a list of objects and return them in a dictionary.

Hfss3dLayout.get_oo_name(aedt_object[, ...])

Return the object-oriented AEDT property names.

Hfss3dLayout.get_oo_object(aedt_object, ...)

Return the Object Oriented AEDT Object.

Hfss3dLayout.get_oo_properties(aedt_object, ...)

Return the Object Oriented AEDT Object Properties.

Hfss3dLayout.get_oo_property_value(...)

Return the Object Oriented AEDT Object Properties.

Hfss3dLayout.get_output_variable(variable[, ...])

Retrieve the value of the output variable.

Hfss3dLayout.get_profile([name])

Get profile information.

Hfss3dLayout.get_registry_key_int(name)

Get the value for the AEDT registry key if one exists.

Hfss3dLayout.get_registry_key_string(name)

Get the value for the AEDT registry key if one exists.

Hfss3dLayout.get_setup(name[, setup_type])

Retrieve a setup.

Hfss3dLayout.get_setups()

Retrieve setups.

Hfss3dLayout.get_sweeps(name)

Retrieve all sweeps for a setup.

Hfss3dLayout.get_touchstone_data([setup, ...])

Return a Touchstone data plot.

Hfss3dLayout.get_traces_for_plot([...])

Retrieve a list of traces of specified designs ready to use in plot reports.

Hfss3dLayout.hidden_variable(name[, value])

Set the variable to a hidden or unhidden variable.

Hfss3dLayout.import_awr(input_file[, ...])

Import an AWR Microwave Office file into HFSS 3D Layout and assign the stackup from an XML file if present.

Hfss3dLayout.import_brd(input_file[, ...])

Import a board file into HFSS 3D Layout and assign the stackup from an XML file if present.

Hfss3dLayout.import_dataset1d(input_file[, ...])

Import a 1D dataset.

Hfss3dLayout.import_dataset3d(input_file[, ...])

Import a 3D dataset.

Hfss3dLayout.import_dxf(input_file[, ...])

Import a DXF file into HFSS 3D Layout and assign the stackup from an XML file if present.

Hfss3dLayout.import_edb(input_folder)

Import EDB.

Hfss3dLayout.import_gds(input_file[, ...])

Import a GDS file into HFSS 3D Layout and assign the stackup from an XML file if present.

Hfss3dLayout.import_gerber(input_file[, ...])

Import a Gerber zip file into HFSS 3D Layout and assign the stackup from an XML file if present.

Hfss3dLayout.import_ipc2581(input_file[, ...])

Import an IPC2581 file into HFSS 3D Layout and assign the stackup from an XML file if present.

Hfss3dLayout.import_odb(input_file[, ...])

Import an ODB++ file into HFSS 3D Layout and assign the stackup from an XML file if present.

Hfss3dLayout.insert_design([name, solution_type])

Add a design of a specified type.

Hfss3dLayout.list_of_variations([setup, sweep])

Retrieve a list of active variations for input setup.

Hfss3dLayout.load_diff_pairs_from_file(...)

Load differential pairs definition from a file.

Hfss3dLayout.load_project(file_name[, ...])

Open an AEDT project based on a project and optional design.

Hfss3dLayout.number_with_units(value[, units])

Convert a number to a string with units.

Hfss3dLayout.read_design_data()

Read back the design data as a dictionary.

Hfss3dLayout.read_only_variable(name[, value])

Set the variable to a read-only or not read-only variable.

Hfss3dLayout.release_desktop([...])

Release AEDT.

Hfss3dLayout.remove_all_unused_definitions()

Remove all unused definitions in the project.

Hfss3dLayout.rename_design(name[, save])

Rename the active design.

Hfss3dLayout.save_diff_pairs_to_file(output_file)

Save differtential pairs definition to a file.

Hfss3dLayout.save_project([file_name, ...])

Save the project and add a message.

Hfss3dLayout.set_active_design(name)

Change the active design to another design.

Hfss3dLayout.set_active_dso_config_name([...])

Change a specific registry key to a new value.

Hfss3dLayout.set_differential_pair(...[, ...])

Add a differential pair definition.

Hfss3dLayout.set_export_touchstone([...])

Set or disable the automatic export of the touchstone file after completing frequency sweep.

Hfss3dLayout.set_license_type([license_type])

Change the license type between "Pack" and "Pool".

Hfss3dLayout.set_meshing_settings([...])

Define the settings of the mesh.

Hfss3dLayout.set_oo_property_value(...)

Change the property value of the object-oriented AEDT object.

Hfss3dLayout.set_registry_from_file(...[, ...])

Apply desktop registry settings from an ACT file.

Hfss3dLayout.set_registry_key(name, value)

Change a specific registry key to a new value.

Hfss3dLayout.set_temporary_directory(path)

Set temporary directory path.

Hfss3dLayout.show_extent([show])

Show or hide extent in a HFSS3dLayout design.

Hfss3dLayout.solve_in_batch([file_name, ...])

Analyze a design setup in batch mode.

Hfss3dLayout.stop_simulations([clean_stop])

Check if there are simulation running and stops them.

Hfss3dLayout.submit_job(cluster_name[, ...])

Submit a job to be solved on a cluster.

Hfss3dLayout.validate_full_design([name, ...])

Validate the design based on the expected value and save the information in the log file.

Hfss3dLayout.validate_simple([log_file])

Validate a design.

Hfss3dLayout.value_with_units(value[, ...])

Combine a number and a string containing the modeler length unit in a single string e.g. "1.2mm".

Attributes

Hfss3dLayout.Position

Position of the object.

Hfss3dLayout.SimulationSetupTypes

Simulation setup types.

Hfss3dLayout.SolutionTypes

Solution types.

Hfss3dLayout.active_setup

Get or Set the name of the active setup.

Hfss3dLayout.aedt_version_id

AEDT version.

Hfss3dLayout.are_there_simulations_running

Check if there are simulation running.

Hfss3dLayout.available_variations

Available variation object.

Hfss3dLayout.boundaries

Design boundaries and excitations.

Hfss3dLayout.boundaries_by_type

Design boundaries by type.

Hfss3dLayout.configurations

Property to import and export configuration files.

Hfss3dLayout.default_solution_type

Default solution type.

Hfss3dLayout.design_datasets

Dictionary of Design Datasets.

Hfss3dLayout.design_list

Design list.

Hfss3dLayout.design_name

Design name.

Hfss3dLayout.design_properties

Design properties.

Hfss3dLayout.design_type

Design type.

Hfss3dLayout.desktop_class

Desktop class.

Hfss3dLayout.desktop_install_dir

AEDT installation directory.

Hfss3dLayout.excitation_objects

Get all excitation.

Hfss3dLayout.excitations

Excitation names.

Hfss3dLayout.excitations_by_type

Design excitations by type.

Hfss3dLayout.existing_analysis_setups

Existing analysis setups in the design.

Hfss3dLayout.existing_analysis_sweeps

Existing analysis sweeps.

Hfss3dLayout.get_all_sparameter_list

List of all S parameters for a list of excitations.

Hfss3dLayout.ic_mode

IC mode of current design.

Hfss3dLayout.info

Dictionary of the PyAEDT session information.

Hfss3dLayout.layouteditor

Return the Circuit Layout Editor.

Hfss3dLayout.library_list

Library list.

Hfss3dLayout.lock_file

Lock file.

Hfss3dLayout.logger

Logger for the design.

Hfss3dLayout.materials

Materials in the project.

Hfss3dLayout.mesh

Mesh.

Hfss3dLayout.modeler

Modeler object.

Hfss3dLayout.native_component_names

Native component names.

Hfss3dLayout.native_components

Native Component dictionary.

Hfss3dLayout.nominal_adaptive

Nominal adaptive sweep.

Hfss3dLayout.nominal_sweep

Nominal sweep.

Hfss3dLayout.o_component_manager

Component manager object.

Hfss3dLayout.o_maxwell_parameters

AEDT Maxwell Parameter Setup Object.

Hfss3dLayout.o_model_manager

Model manager object.

Hfss3dLayout.o_symbol_manager

Aedt Symbol Manager.

Hfss3dLayout.oanalysis

Analysis AEDT Module.

Hfss3dLayout.oboundary

Boundary Object.

Hfss3dLayout.odefinition_manager

Definition Manager Module.

Hfss3dLayout.odesign

Design.

Hfss3dLayout.odesktop

AEDT instance containing all projects and designs.

Hfss3dLayout.oeditor

Oeditor Module.

Hfss3dLayout.oexcitation

Solution Module.

Hfss3dLayout.ofieldsreporter

Fields reporter.

Hfss3dLayout.oimport_export

Import/Export Manager Module.

Hfss3dLayout.omaterial_manager

Material Manager Module.

Hfss3dLayout.omatrix

Matrix Object.

Hfss3dLayout.omeshmodule

Icepak Mesh Module.

Hfss3dLayout.omodelsetup

AEDT Model Setup Object.

Hfss3dLayout.omonitor

AEDT Monitor Object.

Hfss3dLayout.ooptimetrics

AEDT Optimetrics Module.

Hfss3dLayout.ooutput_variable

AEDT Output Variable Module.

Hfss3dLayout.opadstackmanager

AEDT oPadstackManager.

Hfss3dLayout.oproject

Project property.

Hfss3dLayout.optimizations

Optimizations in the project.

Hfss3dLayout.oradfield

AEDT Radiation Field Object.

Hfss3dLayout.oreportsetup

Report setup.

Hfss3dLayout.osolution

Solution Module.

Hfss3dLayout.output_variables

List of output variables.

Hfss3dLayout.parametrics

Setups in the project.

Hfss3dLayout.personallib

PersonalLib directory.

Hfss3dLayout.port_list

Port list.

Hfss3dLayout.ports

Design excitations.

Hfss3dLayout.post

PostProcessor.

Hfss3dLayout.project_datasets

Dictionary of project datasets.

Hfss3dLayout.project_file

Project name and path.

Hfss3dLayout.project_list

Project list.

Hfss3dLayout.project_name

Project name.

Hfss3dLayout.project_path

Project path.

Hfss3dLayout.project_properties

Project properties.

Hfss3dLayout.project_time_stamp

Return Project time stamp.

Hfss3dLayout.project_timestamp_changed

Return a bool if time stamp changed or not.

Hfss3dLayout.pyaedt_dir

PyAEDT directory.

Hfss3dLayout.results_directory

Results directory.

Hfss3dLayout.settings

Settings of the current Python/Pyaedt session.

Hfss3dLayout.setup_names

Setup names.

Hfss3dLayout.setups

Setups in the project.

Hfss3dLayout.solution_type

Solution type.

Hfss3dLayout.src_dir

Source directory for Python.

Hfss3dLayout.syslib

SysLib directory.

Hfss3dLayout.temp_directory

Path to the temporary directory.

Hfss3dLayout.toolkit_directory

Path to the toolkit directory.

Hfss3dLayout.userlib

UserLib directory.

Hfss3dLayout.valid_design

Valid design.

Hfss3dLayout.variable_manager

Variable manager for creating and managing project design and postprocessing variables.

Hfss3dLayout.working_directory

Path to the working directory.