Part#
- class ansys.aedt.core.modeler.advanced_cad.parts.Part(part_folder, part_dict, parent=None, name=None)#
Manages 3D component placement and definition.
- Parameters:
- part_folder
str
Path to the folder with the A3DCOMP files.
- part_dict
dict
Defines relevant properties of the class with the following keywords: * ‘comp_name’: str, Name of the A3DCOMP file. * ‘offset’: list or str, Offset coordinate system definition relative to the parent. * ‘rotation_cs’: list or str, Rotation coordinate system relative to the parent. * ‘rotation’: str or numeric, Rotation angle. * ‘compensation_angle’: str or numeric, Initial angle. * ‘rotation_axis’: str, Rotation axis (
"X"
,"Y"
, or"Z"
). * ‘duplicate_number’: str or int, Number of instances for linear duplication. * ‘duplicate_vector’: list, Vector for duplication relative to the parent coordinate system.- parent
str
The default is
None
.- name
str
,optional
Name of the A3DCOMP file without the extension. The default is
None
.
- part_folder
Methods
Part.do_rotate
(app, aedt_object)Set the rotation coordinate system relative to the parent coordinate system.
Part.insert
(app)Insert 3D component in AEDT.
Part.set_relative_cs
(app)Create a parametric coordinate system.
Part.zero_offset
(kw)Check if the coordinate system defined by kw is [0, 0, 0].
Attributes
Coordinate system name.
Antenna file name.
Local part offset values.
Part name.
Pitch variable value.
Pitch variable name.
Roll variable value.
Roll variable name.
Rotation coordinate system name.
Origin rotation list.
Yaw variable value.
Yaw variable name.