UserDefinedComponent#
- class ansys.aedt.core.modeler.cad.components_3d.UserDefinedComponent(primitives, name=None, props=None, component_type=None)#
Manages object attributes for 3DComponent and User Defined Model.
- Parameters:
- primitives
ansys.aedt.core.modeler.cad.primitives_3d.Primitives3D Inherited parent object.
- name
str,optional Name of the component. The default value is
None.- props
dict,optional Dictionary of properties. The default value is
None.- component_type
str,optional Type of the component. The default value is
None.
- primitives
Examples
Basic usage demonstrated with an HFSS design:
>>> from ansys.aedt.core import Hfss >>> aedtapp = Hfss() >>> prim = aedtapp.modeler.user_defined_components
Obtain user defined component names, to return a
ansys.aedt.core.modeler.cad.components_3d.UserDefinedComponent.>>> component_names = aedtapp.modeler.user_defined_components >>> component = aedtapp.modeler[component_names["3DC_Cell_Radome_In1"]]
Methods
Delete the object.
Duplicate the object along a line.
Duplicate and mirror a selection.
Duplicate the component around the axis.
UserDefinedComponent.edit_definition([password])Edit 3d Definition.
Get 3d component file path.
Component history.
UserDefinedComponent.mirror(origin, vector)Mirror a selection.
UserDefinedComponent.move(vector)Move component from a list.
UserDefinedComponent.rotate(axis[, angle, units])Rotate the selection.
Update 3d component definition.
Update the Native Component in AEDT.
Attributes
Get bounding dimension of a user defined model.
Get center coordinates of a user defined model.
Group the component belongs to.
3DComponent flag.
Layout component object.
Mesh assembly flag.
Name of the object.
Component parameters.
Dictionary of objects that belong to the user-defined component.
Shortcut for dir(self).
Target coordinate system.