add_mesh_link#
- SetupSBR.add_mesh_link(design, solution=None, parameters=None, project='This Project*', force_source_to_solve=True, preserve_partner_solution=True, apply_mesh_operations=True, adapt_port=True)#
Import mesh from a source design solution to the target design.
- Parameters:
- design
str Name of the source design from which the mesh is imported.
- solution
str,optional Name of the source design solution in the format
"name : solution_name". IfNone, the default value is taken from the nominal adaptive solution.- parameters
dict,optional Dictionary of the “mapping” variables from the source design. If
None, the default is appname.available_variations.nominal_values.- project
str,optional Name of the project with the design. The default is
"This Project*". However, you can supply the full path and name to another project.- force_source_to_solvebool,
optional Default value is
True.- preserve_partner_solutionbool,
optional Default value is
True.- apply_mesh_operationsbool,
optional Apply mesh operations in target design on the imported mesh. Default value is
True.- adapt_portbool,
optional Perform port adapt/seeding in target solve setup. Default value is
True.
- design
- Returns:
- bool
Truewhen successful,Falsewhen failed.
References
>>> oModule.EditSetup
Examples
>>> from ansys.aedt.core import Maxwell3d >>> m3d = Maxwell3d(design="target_design") >>> target_setup = m3d.create_setup(name="target_setup") The target design is duplicated and made it active. The duplicated design will be the source design from which the mesh is imported. >>> m3d.duplicate_design(name="target_design", save_after_duplicate=True) >>> m3d.rename_design(name="source_design") >>> m3d.create_setup(name="source_setup") Activate the target design. >>> m3d.set_active_design("target_design") The mesh link is assigned to the target design. >>> target_setup.add_mesh_link("source_design") >>> m3d.desktop_class.close_desktop()