create_perfecth_from_objects#

Hfss.create_perfecth_from_objects(assignment, reference, start_direction=0, name=None, is_boundary_on_plane=True)#

Create a Perfect H taking the closest edges of two objects.

Parameters:
assignmentstr or int or ansys.aedt.core.modeler.cad.object_3d.Object3d

Starting object for the integration line.

referencestr or int or ansys.aedt.core.modeler.cad.object_3d.Object3d

Ending object for the integration line.

start_directionint or ansys.aedt.core.application.analysis.Analysis.AxisDir, optional

Start direction for the boundary location. It should be one of the values for Application.AxisDir, which are: XNeg, YNeg, ZNeg, XPos, YPos, and ZPos. The default is Application.AxisDir.XNeg.

namestr, optional
Perfect H name. The default is None,

in which case a name is automatically assigned.

is_boundary_on_planebool, optional

Whether to create the Perfect H on the plane orthogonal to the axis direction. The default is True.

Returns:
ansys.aedt.core.modules.boundary.BoundaryObject or bool

Boundary object if successful, False otherwise.

References

>>> oModule.AssignPerfectH

Examples

Create two boxes for creating a Perfect H named 'PerfectH'.

>>> box1 = hfss.modeler.create_box([0,0,20],[10,10,5],"perfect1","Copper")
>>> box2 = hfss.modeler.create_box([0, 0, 30],[10, 10, 5],"perfect2","copper")
>>> perfect_h = hfss.create_perfecth_from_objects("perfect1","perfect2",hfss.AxisDir.ZNeg,"Perfect H")
PyAEDT INFO: Connection Correctly created
>>> type(perfect_h)
<class 'from ansys.aedt.core.modules.boundary.BoundaryObject'>