Part#

class pyaedt.modeler.advanced_cad.parts.Part(part_folder, part_dict, parent=None, name=None)[source]#

Manages 3D component placement and definition.

Parameters:
part_folderstr

Path to the folder with the A3DCOMP files.

part_dictdict

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.

parentstr

The default is None.

namestr, optional

Name of the A3DCOMP file without the extension. The default is None.

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

Part.allowed_keys

Part.cs_name

Coordinate system name.

Part.file_name

Antenna file name.

Part.local_origin

Local part offset values.

Part.name

Part name.

Part.pitch

Pitch variable value.

Part.pitch_name

Pitch variable name.

Part.roll

Roll variable value.

Part.roll_name

Roll variable name.

Part.rot_cs_name

Rotation coordinate system name.

Part.rotate_origin

Origin rotation list.

Part.yaw

Yaw variable value.

Part.yaw_name

Yaw variable name.