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:
- project
str
,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 oredb.def
file. The default isNone
, in which case an attempt is made to get an active project. If no projects are present, an empty project is created.- design
str
,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_type
str
,optional
Solution type to apply to the design. The default is
None
, in which case the default type is applied.- setup
str
,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.- version
str
,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 are232
,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 isFalse
.- 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
.- machine
str
,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.
- port
int
,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_id
int
,optional
Process ID for the instance of AEDT to point PyAEDT at. The default is
None
. This parameter is only used whennew_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.
- project
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 namedprojectname
. If this project does not exist, create one with this name.>>> aedtapp = Hfss3dLayout(projectname)
Create an
Hfss3dLayout
object and link to a design nameddesignname
in a project namedprojectname
.>>> 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="2024.2", project="myfile.aedt")
Create an instance of
Hfss3dLayout
from anEdb
>>> 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
Activate optimization analysis for a variable and optionally set up ranges.
Activate sensitivity analysis for a variable and optionally set up ranges.
Activate statitistical analysis for a variable and optionally set up ranges.
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.
Disable autosave in AEDT.
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.
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.
Update the validation design settings.
Check if a beta option is enabled.
Check if a project path is already loaded in active Desktop.
Hfss3dLayout.clean_proj_folder
([directory, name])Delete a project folder.
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.
Create a sweep with the specified number of points.
Hfss3dLayout.create_linear_step_sweep
(setup, ...)Create a sweep with the specified frequency step.
Create a project within AEDT.
Hfss3dLayout.create_output_variable
(...[, ...])Create or modify an output variable.
Create a PEC connection on a component for a list of nets.
Hfss3dLayout.create_pin_port
(name[, x, y, ...])Create a pin port.
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.
Create a sweep with a single frequency point.
Hfss3dLayout.create_wave_port
(assignment, ...)Create a single-ended wave port.
Create a wave port.
Hfss3dLayout.dataset_exists
(name[, ...])Check if a dataset exists.
Deactivate the optimization analysis for a variable.
Deactivate the sensitivity analysis for a variable.
Deactivate the statistical analysis for a variable.
Deactivate the tuning analysis for a variable.
Hfss3dLayout.delete_design
([name, ...])Delete a design from the current project.
Delete imported data.
Hfss3dLayout.delete_port
(name)Delete a port.
Delete a project.
Delete a separator from either the active project or a design.
Delete a setup.
Delete design and project unused variables.
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.
Edit cosimulation options.
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.
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.
Export design preview image to a JPG file.
Hfss3dLayout.export_mesh_stats
(setup[, ...])Export mesh statistics to a file.
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.
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.
Generate a unique directory string to save a project to.
Generate a new setup with a unique name.
Get a list of all insertion losses from two lists of excitations (driver and receiver).
Get a list of all return losses for a list of excitations.
Get dcir element data current source.
Get dcir element data loop resistance.
Get dcir element data via.
Hfss3dLayout.get_dcir_solution_data
(setup[, ...])Retrieve dcir solution data.
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).
Get the path for the parasolid file in the result folder.
Hfss3dLayout.get_module
(module_name)Aedt Module object.
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.
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.
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.
Get the value for the AEDT registry key if one exists.
Get the value for the AEDT registry key if one exists.
Hfss3dLayout.get_setup
(name[, setup_type])Retrieve a setup.
Retrieve setups.
Hfss3dLayout.get_sweeps
(name)Retrieve all sweeps for a setup.
Hfss3dLayout.get_touchstone_data
([setup, ...])Return a Touchstone data 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.import_table
(input_file[, ...])Import a data table as a solution.
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.
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.
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.
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.
Change the active design to another design.
Change a specific registry key to a new value.
Hfss3dLayout.set_differential_pair
(...[, ...])Add a differential pair definition.
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"
.Define the settings of the mesh.
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.
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
Position of the object.
Simulation setup types.
Solution types.
Get or Set the name of the active setup.
AEDT version.
Check if there are simulation running.
Available variation object.
Design boundaries and excitations.
Design boundaries by type.
Property to import and export configuration files.
Default solution type.
Dictionary of Design Datasets.
Design list.
Design name.
Design properties.
Design type.
Desktop
class.AEDT installation directory.
Get all excitation.
Excitation names.
Design excitations by type.
Existing analysis setups in the design.
Existing analysis sweeps.
List of all S parameters for a list of excitations.
IC mode of current design.
Dictionary of the PyAEDT session information.
Return the Circuit Layout Editor.
Library list.
Lock file.
Logger for the design.
Materials in the project.
Mesh.
Modeler object.
Native component names.
Native Component dictionary.
Nominal adaptive sweep.
Nominal sweep.
Component manager object.
AEDT Maxwell Parameter Setup Object.
Model manager object.
Aedt Symbol Manager.
Analysis AEDT Module.
Boundary Object.
Definition Manager Module.
Design.
AEDT instance containing all projects and designs.
Oeditor Module.
Solution Module.
Fields reporter.
Import/Export Manager Module.
Material Manager Module.
Matrix Object.
Icepak Mesh Module.
AEDT Model Setup Object.
AEDT Monitor Object.
AEDT Optimetrics Module.
AEDT Output Variable Module.
AEDT oPadstackManager.
Project property.
Optimizations in the project.
AEDT Radiation Field Object.
Report setup.
Solution Module.
List of output variables.
Setups in the project.
PersonalLib directory.
Port list.
Design excitations.
PostProcessor.
Dictionary of project datasets.
Project name and path.
Project list.
Project name.
Project path.
Project properties.
Return Project time stamp.
Return a bool if time stamp changed or not.
PyAEDT directory.
Results directory.
Settings of the current Python/Pyaedt session.
Setup names.
Setups in the project.
Solution type.
Source directory for Python.
SysLib directory.
Path to the temporary directory.
Path to the toolkit directory.
UserLib directory.
Valid design.
Variable manager for creating and managing project design and postprocessing variables.
Path to the working directory.