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:
- assignment
strorintoransys.aedt.core.modeler.cad.object_3d.Object3d Starting object for the integration line.
- reference
strorintoransys.aedt.core.modeler.cad.object_3d.Object3d Ending object for the integration line.
- start_direction
intoransys.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, andZPos. The default isApplication.AxisDir.XNeg.- name
str,optional - Perfect H name. The default is
None, in which case a name is automatically assigned.
- Perfect H name. The default is
- is_boundary_on_planebool,
optional Whether to create the Perfect H on the plane orthogonal to the axis direction. The default is
True.
- assignment
- Returns:
ansys.aedt.core.modules.boundary.common.BoundaryObjector boolBoundary object if successful,
Falseotherwise.
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.common.BoundaryObject'>