Object3d#
- class ansys.aedt.core.modeler.cad.object_3d.Object3d(primitives, name=None)[source]#
Manages object attributes for the AEDT 3D Modeler.
- Parameters:
- primitives
ansys.aedt.core.modeler.cad.primitives_3d.Primitives3D
Inherited parent object.
- name
str
- primitives
Examples
Basic usage demonstrated with an HFSS design:
>>> from ansys.aedt.core import Hfss >>> aedtapp = Hfss() >>> prim = aedtapp.modeler
Create a part, such as box, to return an
ansys.aedt.core.modeler.Object3d.Object3d
.>>> id = prim.create_box([0, 0, 0],[10, 10, 5],"Mybox","Copper") >>> part = prim[id]
Methods
Object3d.chamfer
([vertices, edges, ...])Add a chamfer to the selected edges in 3D/vertices in 2D.
Clone the object and return the new 3D object.
Delete the object.
Object3d.detach_faces
(faces)Section the object.
Object3d.duplicate_along_line
(vector[, ...])Duplicate the object along a line.
Object3d.duplicate_around_axis
(axis[, ...])Duplicate the object around the axis.
Object3d.edges_by_length
(length[, ...])Filter edges by length.
Object3d.export_image
([output_file])Export the current object to a specified file path.
Object3d.faces_by_area
(area[, area_filter, ...])Filter faces by area.
Object3d.fillet
([vertices, edges, radius, ...])Add a fillet to the selected edges in 3D/vertices in 2D.
Object3d.get_touching_faces
(assignment)Get the objects that touch one of the face center of each face of the object.
Object history.
Object3d.intersect
(assignment[, keep_originals])Intersect the active object with a given list.
Return only the face with the greatest area.
Return only the edge with the greatest length.
Object3d.mirror
(origin, vector[, duplicate])Mirror a selection.
Object3d.move
(vector)Move objects from a list.
Object3d.plot
([show])Plot model with PyVista.
Object3d.rotate
(axis[, angle, units])Rotate the selection.
Object3d.section
(plane[, create_new, ...])Section the object.
Return only the edge with the smallest length.
Return only the face with the smallest area.
Object3d.split
(plane[, sides])Split the active object.
Object3d.subtract
(tool_list[, keep_originals])Subtract one or more parts from the object.
Object3d.sweep_along_path
(sweep_object[, ...])Sweep the selection along a vector.
Object3d.sweep_along_vector
(sweep_vector[, ...])Sweep the selection along a vector.
Object3d.sweep_around_axis
(axis[, ...])Sweep around an axis.
Get the conductors of given object.
Object3d.unite
(assignment)Unite a list of objects with this object.
Object3d.wrap_sheet
(object_name[, imprinted])Execute the sheet wrapping around an object.
Attributes
Bottom edge in the X direction of the object.
Bottom edge in the Y direction of the object.
Bottom edge in the Z direction of the object.
Bottom face in the X direction of the object.
Bottom face in the X direction of the object.
Bottom face in the Z direction of the object.
Bounding box of a part.
Retrieve the dimension array of the bounding box.
Part color as a tuple of integer values for (Red, Green, Blue) color values.
Color tuple as a string in the format '(Red, Green, Blue)'.
Wireframe property of the part.
Information for each edge in the given part.
Return only the face ids of the face closest to the bounding box.
Information for each face in the given part.
Return only the face ids of the faces touching the bounding box.
Group the object belongs to.
ID of the object.
Check for if the object is 3D.
Check if the object is a conductor.
Logger.
Object mass.
Material name of the object.
Part model or non-model property.
Name of the object as a string value.
Type of the object.
Object units.
Part coordinate system.
Part solve inside flag.
Surface material name of the object.
Top edge in the X direction of the object.
Top edge in the Y direction of the object.
Top edge in the Z direction of the object.
Top face in the X direction of the object.
Top face in the Y direction of the object.
Top face in the Z direction of the object.
Get the objects that touch a vertex, edge midpoint, or face of the object.
Part transparency as a value between 0.0 and 1.0.
Valid properties.
Information for each vertex in the given part.
Object volume.