"""DesignEntity"""

from __future__ import annotations

from typing import TYPE_CHECKING, ClassVar

from mastapy._private._internal.dataclasses import extended_dataclass
from mastapy._private._internal.exception_bridge import exception_bridge
from mastapy._private._internal.exceptions import CastException
from mastapy._private._internal.python_net import (
    python_net_import,
    pythonnet_method_call,
    pythonnet_property_get,
    pythonnet_property_set,
)
from mastapy._private._internal.type_enforcement import enforce_parameter_types
from PIL.Image import Image

from mastapy._private import _0
from mastapy._private._internal import constructor, conversion, utility

_DESIGN_ENTITY = python_net_import("SMT.MastaAPI.SystemModel", "DesignEntity")

if TYPE_CHECKING:
    from typing import Any, List, Type, TypeVar

    from mastapy._private._internal.typing import PathLike

    from mastapy._private.system_model import _2450
    from mastapy._private.system_model.connections_and_sockets import (
        _2526,
        _2529,
        _2530,
        _2533,
        _2534,
        _2542,
        _2548,
        _2553,
        _2556,
    )
    from mastapy._private.system_model.connections_and_sockets.couplings import (
        _2603,
        _2605,
        _2607,
        _2609,
        _2611,
        _2613,
    )
    from mastapy._private.system_model.connections_and_sockets.cycloidal import (
        _2596,
        _2599,
        _2602,
    )
    from mastapy._private.system_model.connections_and_sockets.gears import (
        _2560,
        _2562,
        _2564,
        _2566,
        _2568,
        _2570,
        _2572,
        _2574,
        _2576,
        _2579,
        _2580,
        _2581,
        _2584,
        _2586,
        _2588,
        _2590,
        _2592,
    )
    from mastapy._private.system_model.part_model import (
        _2704,
        _2705,
        _2706,
        _2707,
        _2710,
        _2713,
        _2714,
        _2716,
        _2719,
        _2720,
        _2725,
        _2726,
        _2727,
        _2728,
        _2735,
        _2736,
        _2737,
        _2738,
        _2739,
        _2741,
        _2744,
        _2746,
        _2748,
        _2749,
        _2752,
        _2754,
        _2755,
        _2757,
    )
    from mastapy._private.system_model.part_model.couplings import (
        _2861,
        _2863,
        _2864,
        _2866,
        _2867,
        _2869,
        _2870,
        _2872,
        _2873,
        _2874,
        _2875,
        _2877,
        _2884,
        _2885,
        _2886,
        _2892,
        _2893,
        _2894,
        _2896,
        _2897,
        _2898,
        _2899,
        _2900,
        _2902,
    )
    from mastapy._private.system_model.part_model.cycloidal import _2852, _2853, _2854
    from mastapy._private.system_model.part_model.gears import (
        _2796,
        _2797,
        _2798,
        _2799,
        _2800,
        _2801,
        _2802,
        _2803,
        _2804,
        _2805,
        _2806,
        _2807,
        _2808,
        _2809,
        _2810,
        _2811,
        _2812,
        _2813,
        _2815,
        _2817,
        _2818,
        _2819,
        _2820,
        _2821,
        _2822,
        _2823,
        _2824,
        _2825,
        _2827,
        _2828,
        _2829,
        _2830,
        _2831,
        _2832,
        _2833,
        _2834,
        _2835,
        _2836,
        _2837,
        _2838,
    )
    from mastapy._private.system_model.part_model.shaft_model import _2760
    from mastapy._private.utility.model_validation import _2022, _2023
    from mastapy._private.utility.scripting import _1970

    Self = TypeVar("Self", bound="DesignEntity")
    CastSelf = TypeVar("CastSelf", bound="DesignEntity._Cast_DesignEntity")


__docformat__ = "restructuredtext en"
__all__ = ("DesignEntity",)


@extended_dataclass(frozen=True, slots=True, weakref_slot=True)
class _Cast_DesignEntity:
    """Special nested class for casting DesignEntity to subclasses."""

    __parent__: "DesignEntity"

    @property
    def abstract_shaft_to_mountable_component_connection(
        self: "CastSelf",
    ) -> "_2526.AbstractShaftToMountableComponentConnection":
        from mastapy._private.system_model.connections_and_sockets import _2526

        return self.__parent__._cast(_2526.AbstractShaftToMountableComponentConnection)

    @property
    def belt_connection(self: "CastSelf") -> "_2529.BeltConnection":
        from mastapy._private.system_model.connections_and_sockets import _2529

        return self.__parent__._cast(_2529.BeltConnection)

    @property
    def coaxial_connection(self: "CastSelf") -> "_2530.CoaxialConnection":
        from mastapy._private.system_model.connections_and_sockets import _2530

        return self.__parent__._cast(_2530.CoaxialConnection)

    @property
    def connection(self: "CastSelf") -> "_2533.Connection":
        from mastapy._private.system_model.connections_and_sockets import _2533

        return self.__parent__._cast(_2533.Connection)

    @property
    def cvt_belt_connection(self: "CastSelf") -> "_2534.CVTBeltConnection":
        from mastapy._private.system_model.connections_and_sockets import _2534

        return self.__parent__._cast(_2534.CVTBeltConnection)

    @property
    def inter_mountable_component_connection(
        self: "CastSelf",
    ) -> "_2542.InterMountableComponentConnection":
        from mastapy._private.system_model.connections_and_sockets import _2542

        return self.__parent__._cast(_2542.InterMountableComponentConnection)

    @property
    def planetary_connection(self: "CastSelf") -> "_2548.PlanetaryConnection":
        from mastapy._private.system_model.connections_and_sockets import _2548

        return self.__parent__._cast(_2548.PlanetaryConnection)

    @property
    def rolling_ring_connection(self: "CastSelf") -> "_2553.RollingRingConnection":
        from mastapy._private.system_model.connections_and_sockets import _2553

        return self.__parent__._cast(_2553.RollingRingConnection)

    @property
    def shaft_to_mountable_component_connection(
        self: "CastSelf",
    ) -> "_2556.ShaftToMountableComponentConnection":
        from mastapy._private.system_model.connections_and_sockets import _2556

        return self.__parent__._cast(_2556.ShaftToMountableComponentConnection)

    @property
    def agma_gleason_conical_gear_mesh(
        self: "CastSelf",
    ) -> "_2560.AGMAGleasonConicalGearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2560

        return self.__parent__._cast(_2560.AGMAGleasonConicalGearMesh)

    @property
    def bevel_differential_gear_mesh(
        self: "CastSelf",
    ) -> "_2562.BevelDifferentialGearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2562

        return self.__parent__._cast(_2562.BevelDifferentialGearMesh)

    @property
    def bevel_gear_mesh(self: "CastSelf") -> "_2564.BevelGearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2564

        return self.__parent__._cast(_2564.BevelGearMesh)

    @property
    def concept_gear_mesh(self: "CastSelf") -> "_2566.ConceptGearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2566

        return self.__parent__._cast(_2566.ConceptGearMesh)

    @property
    def conical_gear_mesh(self: "CastSelf") -> "_2568.ConicalGearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2568

        return self.__parent__._cast(_2568.ConicalGearMesh)

    @property
    def cylindrical_gear_mesh(self: "CastSelf") -> "_2570.CylindricalGearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2570

        return self.__parent__._cast(_2570.CylindricalGearMesh)

    @property
    def face_gear_mesh(self: "CastSelf") -> "_2572.FaceGearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2572

        return self.__parent__._cast(_2572.FaceGearMesh)

    @property
    def gear_mesh(self: "CastSelf") -> "_2574.GearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2574

        return self.__parent__._cast(_2574.GearMesh)

    @property
    def hypoid_gear_mesh(self: "CastSelf") -> "_2576.HypoidGearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2576

        return self.__parent__._cast(_2576.HypoidGearMesh)

    @property
    def klingelnberg_cyclo_palloid_conical_gear_mesh(
        self: "CastSelf",
    ) -> "_2579.KlingelnbergCycloPalloidConicalGearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2579

        return self.__parent__._cast(_2579.KlingelnbergCycloPalloidConicalGearMesh)

    @property
    def klingelnberg_cyclo_palloid_hypoid_gear_mesh(
        self: "CastSelf",
    ) -> "_2580.KlingelnbergCycloPalloidHypoidGearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2580

        return self.__parent__._cast(_2580.KlingelnbergCycloPalloidHypoidGearMesh)

    @property
    def klingelnberg_cyclo_palloid_spiral_bevel_gear_mesh(
        self: "CastSelf",
    ) -> "_2581.KlingelnbergCycloPalloidSpiralBevelGearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2581

        return self.__parent__._cast(_2581.KlingelnbergCycloPalloidSpiralBevelGearMesh)

    @property
    def spiral_bevel_gear_mesh(self: "CastSelf") -> "_2584.SpiralBevelGearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2584

        return self.__parent__._cast(_2584.SpiralBevelGearMesh)

    @property
    def straight_bevel_diff_gear_mesh(
        self: "CastSelf",
    ) -> "_2586.StraightBevelDiffGearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2586

        return self.__parent__._cast(_2586.StraightBevelDiffGearMesh)

    @property
    def straight_bevel_gear_mesh(self: "CastSelf") -> "_2588.StraightBevelGearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2588

        return self.__parent__._cast(_2588.StraightBevelGearMesh)

    @property
    def worm_gear_mesh(self: "CastSelf") -> "_2590.WormGearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2590

        return self.__parent__._cast(_2590.WormGearMesh)

    @property
    def zerol_bevel_gear_mesh(self: "CastSelf") -> "_2592.ZerolBevelGearMesh":
        from mastapy._private.system_model.connections_and_sockets.gears import _2592

        return self.__parent__._cast(_2592.ZerolBevelGearMesh)

    @property
    def cycloidal_disc_central_bearing_connection(
        self: "CastSelf",
    ) -> "_2596.CycloidalDiscCentralBearingConnection":
        from mastapy._private.system_model.connections_and_sockets.cycloidal import (
            _2596,
        )

        return self.__parent__._cast(_2596.CycloidalDiscCentralBearingConnection)

    @property
    def cycloidal_disc_planetary_bearing_connection(
        self: "CastSelf",
    ) -> "_2599.CycloidalDiscPlanetaryBearingConnection":
        from mastapy._private.system_model.connections_and_sockets.cycloidal import (
            _2599,
        )

        return self.__parent__._cast(_2599.CycloidalDiscPlanetaryBearingConnection)

    @property
    def ring_pins_to_disc_connection(
        self: "CastSelf",
    ) -> "_2602.RingPinsToDiscConnection":
        from mastapy._private.system_model.connections_and_sockets.cycloidal import (
            _2602,
        )

        return self.__parent__._cast(_2602.RingPinsToDiscConnection)

    @property
    def clutch_connection(self: "CastSelf") -> "_2603.ClutchConnection":
        from mastapy._private.system_model.connections_and_sockets.couplings import (
            _2603,
        )

        return self.__parent__._cast(_2603.ClutchConnection)

    @property
    def concept_coupling_connection(
        self: "CastSelf",
    ) -> "_2605.ConceptCouplingConnection":
        from mastapy._private.system_model.connections_and_sockets.couplings import (
            _2605,
        )

        return self.__parent__._cast(_2605.ConceptCouplingConnection)

    @property
    def coupling_connection(self: "CastSelf") -> "_2607.CouplingConnection":
        from mastapy._private.system_model.connections_and_sockets.couplings import (
            _2607,
        )

        return self.__parent__._cast(_2607.CouplingConnection)

    @property
    def part_to_part_shear_coupling_connection(
        self: "CastSelf",
    ) -> "_2609.PartToPartShearCouplingConnection":
        from mastapy._private.system_model.connections_and_sockets.couplings import (
            _2609,
        )

        return self.__parent__._cast(_2609.PartToPartShearCouplingConnection)

    @property
    def spring_damper_connection(self: "CastSelf") -> "_2611.SpringDamperConnection":
        from mastapy._private.system_model.connections_and_sockets.couplings import (
            _2611,
        )

        return self.__parent__._cast(_2611.SpringDamperConnection)

    @property
    def torque_converter_connection(
        self: "CastSelf",
    ) -> "_2613.TorqueConverterConnection":
        from mastapy._private.system_model.connections_and_sockets.couplings import (
            _2613,
        )

        return self.__parent__._cast(_2613.TorqueConverterConnection)

    @property
    def assembly(self: "CastSelf") -> "_2704.Assembly":
        from mastapy._private.system_model.part_model import _2704

        return self.__parent__._cast(_2704.Assembly)

    @property
    def abstract_assembly(self: "CastSelf") -> "_2705.AbstractAssembly":
        from mastapy._private.system_model.part_model import _2705

        return self.__parent__._cast(_2705.AbstractAssembly)

    @property
    def abstract_shaft(self: "CastSelf") -> "_2706.AbstractShaft":
        from mastapy._private.system_model.part_model import _2706

        return self.__parent__._cast(_2706.AbstractShaft)

    @property
    def abstract_shaft_or_housing(self: "CastSelf") -> "_2707.AbstractShaftOrHousing":
        from mastapy._private.system_model.part_model import _2707

        return self.__parent__._cast(_2707.AbstractShaftOrHousing)

    @property
    def bearing(self: "CastSelf") -> "_2710.Bearing":
        from mastapy._private.system_model.part_model import _2710

        return self.__parent__._cast(_2710.Bearing)

    @property
    def bolt(self: "CastSelf") -> "_2713.Bolt":
        from mastapy._private.system_model.part_model import _2713

        return self.__parent__._cast(_2713.Bolt)

    @property
    def bolted_joint(self: "CastSelf") -> "_2714.BoltedJoint":
        from mastapy._private.system_model.part_model import _2714

        return self.__parent__._cast(_2714.BoltedJoint)

    @property
    def component(self: "CastSelf") -> "_2716.Component":
        from mastapy._private.system_model.part_model import _2716

        return self.__parent__._cast(_2716.Component)

    @property
    def connector(self: "CastSelf") -> "_2719.Connector":
        from mastapy._private.system_model.part_model import _2719

        return self.__parent__._cast(_2719.Connector)

    @property
    def datum(self: "CastSelf") -> "_2720.Datum":
        from mastapy._private.system_model.part_model import _2720

        return self.__parent__._cast(_2720.Datum)

    @property
    def external_cad_model(self: "CastSelf") -> "_2725.ExternalCADModel":
        from mastapy._private.system_model.part_model import _2725

        return self.__parent__._cast(_2725.ExternalCADModel)

    @property
    def fe_part(self: "CastSelf") -> "_2726.FEPart":
        from mastapy._private.system_model.part_model import _2726

        return self.__parent__._cast(_2726.FEPart)

    @property
    def flexible_pin_assembly(self: "CastSelf") -> "_2727.FlexiblePinAssembly":
        from mastapy._private.system_model.part_model import _2727

        return self.__parent__._cast(_2727.FlexiblePinAssembly)

    @property
    def guide_dxf_model(self: "CastSelf") -> "_2728.GuideDxfModel":
        from mastapy._private.system_model.part_model import _2728

        return self.__parent__._cast(_2728.GuideDxfModel)

    @property
    def mass_disc(self: "CastSelf") -> "_2735.MassDisc":
        from mastapy._private.system_model.part_model import _2735

        return self.__parent__._cast(_2735.MassDisc)

    @property
    def measurement_component(self: "CastSelf") -> "_2736.MeasurementComponent":
        from mastapy._private.system_model.part_model import _2736

        return self.__parent__._cast(_2736.MeasurementComponent)

    @property
    def microphone(self: "CastSelf") -> "_2737.Microphone":
        from mastapy._private.system_model.part_model import _2737

        return self.__parent__._cast(_2737.Microphone)

    @property
    def microphone_array(self: "CastSelf") -> "_2738.MicrophoneArray":
        from mastapy._private.system_model.part_model import _2738

        return self.__parent__._cast(_2738.MicrophoneArray)

    @property
    def mountable_component(self: "CastSelf") -> "_2739.MountableComponent":
        from mastapy._private.system_model.part_model import _2739

        return self.__parent__._cast(_2739.MountableComponent)

    @property
    def oil_seal(self: "CastSelf") -> "_2741.OilSeal":
        from mastapy._private.system_model.part_model import _2741

        return self.__parent__._cast(_2741.OilSeal)

    @property
    def part(self: "CastSelf") -> "_2744.Part":
        from mastapy._private.system_model.part_model import _2744

        return self.__parent__._cast(_2744.Part)

    @property
    def planet_carrier(self: "CastSelf") -> "_2746.PlanetCarrier":
        from mastapy._private.system_model.part_model import _2746

        return self.__parent__._cast(_2746.PlanetCarrier)

    @property
    def point_load(self: "CastSelf") -> "_2748.PointLoad":
        from mastapy._private.system_model.part_model import _2748

        return self.__parent__._cast(_2748.PointLoad)

    @property
    def power_load(self: "CastSelf") -> "_2749.PowerLoad":
        from mastapy._private.system_model.part_model import _2749

        return self.__parent__._cast(_2749.PowerLoad)

    @property
    def root_assembly(self: "CastSelf") -> "_2752.RootAssembly":
        from mastapy._private.system_model.part_model import _2752

        return self.__parent__._cast(_2752.RootAssembly)

    @property
    def specialised_assembly(self: "CastSelf") -> "_2754.SpecialisedAssembly":
        from mastapy._private.system_model.part_model import _2754

        return self.__parent__._cast(_2754.SpecialisedAssembly)

    @property
    def unbalanced_mass(self: "CastSelf") -> "_2755.UnbalancedMass":
        from mastapy._private.system_model.part_model import _2755

        return self.__parent__._cast(_2755.UnbalancedMass)

    @property
    def virtual_component(self: "CastSelf") -> "_2757.VirtualComponent":
        from mastapy._private.system_model.part_model import _2757

        return self.__parent__._cast(_2757.VirtualComponent)

    @property
    def shaft(self: "CastSelf") -> "_2760.Shaft":
        from mastapy._private.system_model.part_model.shaft_model import _2760

        return self.__parent__._cast(_2760.Shaft)

    @property
    def agma_gleason_conical_gear(self: "CastSelf") -> "_2796.AGMAGleasonConicalGear":
        from mastapy._private.system_model.part_model.gears import _2796

        return self.__parent__._cast(_2796.AGMAGleasonConicalGear)

    @property
    def agma_gleason_conical_gear_set(
        self: "CastSelf",
    ) -> "_2797.AGMAGleasonConicalGearSet":
        from mastapy._private.system_model.part_model.gears import _2797

        return self.__parent__._cast(_2797.AGMAGleasonConicalGearSet)

    @property
    def bevel_differential_gear(self: "CastSelf") -> "_2798.BevelDifferentialGear":
        from mastapy._private.system_model.part_model.gears import _2798

        return self.__parent__._cast(_2798.BevelDifferentialGear)

    @property
    def bevel_differential_gear_set(
        self: "CastSelf",
    ) -> "_2799.BevelDifferentialGearSet":
        from mastapy._private.system_model.part_model.gears import _2799

        return self.__parent__._cast(_2799.BevelDifferentialGearSet)

    @property
    def bevel_differential_planet_gear(
        self: "CastSelf",
    ) -> "_2800.BevelDifferentialPlanetGear":
        from mastapy._private.system_model.part_model.gears import _2800

        return self.__parent__._cast(_2800.BevelDifferentialPlanetGear)

    @property
    def bevel_differential_sun_gear(
        self: "CastSelf",
    ) -> "_2801.BevelDifferentialSunGear":
        from mastapy._private.system_model.part_model.gears import _2801

        return self.__parent__._cast(_2801.BevelDifferentialSunGear)

    @property
    def bevel_gear(self: "CastSelf") -> "_2802.BevelGear":
        from mastapy._private.system_model.part_model.gears import _2802

        return self.__parent__._cast(_2802.BevelGear)

    @property
    def bevel_gear_set(self: "CastSelf") -> "_2803.BevelGearSet":
        from mastapy._private.system_model.part_model.gears import _2803

        return self.__parent__._cast(_2803.BevelGearSet)

    @property
    def concept_gear(self: "CastSelf") -> "_2804.ConceptGear":
        from mastapy._private.system_model.part_model.gears import _2804

        return self.__parent__._cast(_2804.ConceptGear)

    @property
    def concept_gear_set(self: "CastSelf") -> "_2805.ConceptGearSet":
        from mastapy._private.system_model.part_model.gears import _2805

        return self.__parent__._cast(_2805.ConceptGearSet)

    @property
    def conical_gear(self: "CastSelf") -> "_2806.ConicalGear":
        from mastapy._private.system_model.part_model.gears import _2806

        return self.__parent__._cast(_2806.ConicalGear)

    @property
    def conical_gear_set(self: "CastSelf") -> "_2807.ConicalGearSet":
        from mastapy._private.system_model.part_model.gears import _2807

        return self.__parent__._cast(_2807.ConicalGearSet)

    @property
    def cylindrical_gear(self: "CastSelf") -> "_2808.CylindricalGear":
        from mastapy._private.system_model.part_model.gears import _2808

        return self.__parent__._cast(_2808.CylindricalGear)

    @property
    def cylindrical_gear_set(self: "CastSelf") -> "_2809.CylindricalGearSet":
        from mastapy._private.system_model.part_model.gears import _2809

        return self.__parent__._cast(_2809.CylindricalGearSet)

    @property
    def cylindrical_planet_gear(self: "CastSelf") -> "_2810.CylindricalPlanetGear":
        from mastapy._private.system_model.part_model.gears import _2810

        return self.__parent__._cast(_2810.CylindricalPlanetGear)

    @property
    def face_gear(self: "CastSelf") -> "_2811.FaceGear":
        from mastapy._private.system_model.part_model.gears import _2811

        return self.__parent__._cast(_2811.FaceGear)

    @property
    def face_gear_set(self: "CastSelf") -> "_2812.FaceGearSet":
        from mastapy._private.system_model.part_model.gears import _2812

        return self.__parent__._cast(_2812.FaceGearSet)

    @property
    def gear(self: "CastSelf") -> "_2813.Gear":
        from mastapy._private.system_model.part_model.gears import _2813

        return self.__parent__._cast(_2813.Gear)

    @property
    def gear_set(self: "CastSelf") -> "_2815.GearSet":
        from mastapy._private.system_model.part_model.gears import _2815

        return self.__parent__._cast(_2815.GearSet)

    @property
    def hypoid_gear(self: "CastSelf") -> "_2817.HypoidGear":
        from mastapy._private.system_model.part_model.gears import _2817

        return self.__parent__._cast(_2817.HypoidGear)

    @property
    def hypoid_gear_set(self: "CastSelf") -> "_2818.HypoidGearSet":
        from mastapy._private.system_model.part_model.gears import _2818

        return self.__parent__._cast(_2818.HypoidGearSet)

    @property
    def klingelnberg_cyclo_palloid_conical_gear(
        self: "CastSelf",
    ) -> "_2819.KlingelnbergCycloPalloidConicalGear":
        from mastapy._private.system_model.part_model.gears import _2819

        return self.__parent__._cast(_2819.KlingelnbergCycloPalloidConicalGear)

    @property
    def klingelnberg_cyclo_palloid_conical_gear_set(
        self: "CastSelf",
    ) -> "_2820.KlingelnbergCycloPalloidConicalGearSet":
        from mastapy._private.system_model.part_model.gears import _2820

        return self.__parent__._cast(_2820.KlingelnbergCycloPalloidConicalGearSet)

    @property
    def klingelnberg_cyclo_palloid_hypoid_gear(
        self: "CastSelf",
    ) -> "_2821.KlingelnbergCycloPalloidHypoidGear":
        from mastapy._private.system_model.part_model.gears import _2821

        return self.__parent__._cast(_2821.KlingelnbergCycloPalloidHypoidGear)

    @property
    def klingelnberg_cyclo_palloid_hypoid_gear_set(
        self: "CastSelf",
    ) -> "_2822.KlingelnbergCycloPalloidHypoidGearSet":
        from mastapy._private.system_model.part_model.gears import _2822

        return self.__parent__._cast(_2822.KlingelnbergCycloPalloidHypoidGearSet)

    @property
    def klingelnberg_cyclo_palloid_spiral_bevel_gear(
        self: "CastSelf",
    ) -> "_2823.KlingelnbergCycloPalloidSpiralBevelGear":
        from mastapy._private.system_model.part_model.gears import _2823

        return self.__parent__._cast(_2823.KlingelnbergCycloPalloidSpiralBevelGear)

    @property
    def klingelnberg_cyclo_palloid_spiral_bevel_gear_set(
        self: "CastSelf",
    ) -> "_2824.KlingelnbergCycloPalloidSpiralBevelGearSet":
        from mastapy._private.system_model.part_model.gears import _2824

        return self.__parent__._cast(_2824.KlingelnbergCycloPalloidSpiralBevelGearSet)

    @property
    def planetary_gear_set(self: "CastSelf") -> "_2825.PlanetaryGearSet":
        from mastapy._private.system_model.part_model.gears import _2825

        return self.__parent__._cast(_2825.PlanetaryGearSet)

    @property
    def spiral_bevel_gear(self: "CastSelf") -> "_2827.SpiralBevelGear":
        from mastapy._private.system_model.part_model.gears import _2827

        return self.__parent__._cast(_2827.SpiralBevelGear)

    @property
    def spiral_bevel_gear_set(self: "CastSelf") -> "_2828.SpiralBevelGearSet":
        from mastapy._private.system_model.part_model.gears import _2828

        return self.__parent__._cast(_2828.SpiralBevelGearSet)

    @property
    def straight_bevel_diff_gear(self: "CastSelf") -> "_2829.StraightBevelDiffGear":
        from mastapy._private.system_model.part_model.gears import _2829

        return self.__parent__._cast(_2829.StraightBevelDiffGear)

    @property
    def straight_bevel_diff_gear_set(
        self: "CastSelf",
    ) -> "_2830.StraightBevelDiffGearSet":
        from mastapy._private.system_model.part_model.gears import _2830

        return self.__parent__._cast(_2830.StraightBevelDiffGearSet)

    @property
    def straight_bevel_gear(self: "CastSelf") -> "_2831.StraightBevelGear":
        from mastapy._private.system_model.part_model.gears import _2831

        return self.__parent__._cast(_2831.StraightBevelGear)

    @property
    def straight_bevel_gear_set(self: "CastSelf") -> "_2832.StraightBevelGearSet":
        from mastapy._private.system_model.part_model.gears import _2832

        return self.__parent__._cast(_2832.StraightBevelGearSet)

    @property
    def straight_bevel_planet_gear(self: "CastSelf") -> "_2833.StraightBevelPlanetGear":
        from mastapy._private.system_model.part_model.gears import _2833

        return self.__parent__._cast(_2833.StraightBevelPlanetGear)

    @property
    def straight_bevel_sun_gear(self: "CastSelf") -> "_2834.StraightBevelSunGear":
        from mastapy._private.system_model.part_model.gears import _2834

        return self.__parent__._cast(_2834.StraightBevelSunGear)

    @property
    def worm_gear(self: "CastSelf") -> "_2835.WormGear":
        from mastapy._private.system_model.part_model.gears import _2835

        return self.__parent__._cast(_2835.WormGear)

    @property
    def worm_gear_set(self: "CastSelf") -> "_2836.WormGearSet":
        from mastapy._private.system_model.part_model.gears import _2836

        return self.__parent__._cast(_2836.WormGearSet)

    @property
    def zerol_bevel_gear(self: "CastSelf") -> "_2837.ZerolBevelGear":
        from mastapy._private.system_model.part_model.gears import _2837

        return self.__parent__._cast(_2837.ZerolBevelGear)

    @property
    def zerol_bevel_gear_set(self: "CastSelf") -> "_2838.ZerolBevelGearSet":
        from mastapy._private.system_model.part_model.gears import _2838

        return self.__parent__._cast(_2838.ZerolBevelGearSet)

    @property
    def cycloidal_assembly(self: "CastSelf") -> "_2852.CycloidalAssembly":
        from mastapy._private.system_model.part_model.cycloidal import _2852

        return self.__parent__._cast(_2852.CycloidalAssembly)

    @property
    def cycloidal_disc(self: "CastSelf") -> "_2853.CycloidalDisc":
        from mastapy._private.system_model.part_model.cycloidal import _2853

        return self.__parent__._cast(_2853.CycloidalDisc)

    @property
    def ring_pins(self: "CastSelf") -> "_2854.RingPins":
        from mastapy._private.system_model.part_model.cycloidal import _2854

        return self.__parent__._cast(_2854.RingPins)

    @property
    def belt_drive(self: "CastSelf") -> "_2861.BeltDrive":
        from mastapy._private.system_model.part_model.couplings import _2861

        return self.__parent__._cast(_2861.BeltDrive)

    @property
    def clutch(self: "CastSelf") -> "_2863.Clutch":
        from mastapy._private.system_model.part_model.couplings import _2863

        return self.__parent__._cast(_2863.Clutch)

    @property
    def clutch_half(self: "CastSelf") -> "_2864.ClutchHalf":
        from mastapy._private.system_model.part_model.couplings import _2864

        return self.__parent__._cast(_2864.ClutchHalf)

    @property
    def concept_coupling(self: "CastSelf") -> "_2866.ConceptCoupling":
        from mastapy._private.system_model.part_model.couplings import _2866

        return self.__parent__._cast(_2866.ConceptCoupling)

    @property
    def concept_coupling_half(self: "CastSelf") -> "_2867.ConceptCouplingHalf":
        from mastapy._private.system_model.part_model.couplings import _2867

        return self.__parent__._cast(_2867.ConceptCouplingHalf)

    @property
    def coupling(self: "CastSelf") -> "_2869.Coupling":
        from mastapy._private.system_model.part_model.couplings import _2869

        return self.__parent__._cast(_2869.Coupling)

    @property
    def coupling_half(self: "CastSelf") -> "_2870.CouplingHalf":
        from mastapy._private.system_model.part_model.couplings import _2870

        return self.__parent__._cast(_2870.CouplingHalf)

    @property
    def cvt(self: "CastSelf") -> "_2872.CVT":
        from mastapy._private.system_model.part_model.couplings import _2872

        return self.__parent__._cast(_2872.CVT)

    @property
    def cvt_pulley(self: "CastSelf") -> "_2873.CVTPulley":
        from mastapy._private.system_model.part_model.couplings import _2873

        return self.__parent__._cast(_2873.CVTPulley)

    @property
    def part_to_part_shear_coupling(
        self: "CastSelf",
    ) -> "_2874.PartToPartShearCoupling":
        from mastapy._private.system_model.part_model.couplings import _2874

        return self.__parent__._cast(_2874.PartToPartShearCoupling)

    @property
    def part_to_part_shear_coupling_half(
        self: "CastSelf",
    ) -> "_2875.PartToPartShearCouplingHalf":
        from mastapy._private.system_model.part_model.couplings import _2875

        return self.__parent__._cast(_2875.PartToPartShearCouplingHalf)

    @property
    def pulley(self: "CastSelf") -> "_2877.Pulley":
        from mastapy._private.system_model.part_model.couplings import _2877

        return self.__parent__._cast(_2877.Pulley)

    @property
    def rolling_ring(self: "CastSelf") -> "_2884.RollingRing":
        from mastapy._private.system_model.part_model.couplings import _2884

        return self.__parent__._cast(_2884.RollingRing)

    @property
    def rolling_ring_assembly(self: "CastSelf") -> "_2885.RollingRingAssembly":
        from mastapy._private.system_model.part_model.couplings import _2885

        return self.__parent__._cast(_2885.RollingRingAssembly)

    @property
    def shaft_hub_connection(self: "CastSelf") -> "_2886.ShaftHubConnection":
        from mastapy._private.system_model.part_model.couplings import _2886

        return self.__parent__._cast(_2886.ShaftHubConnection)

    @property
    def spring_damper(self: "CastSelf") -> "_2892.SpringDamper":
        from mastapy._private.system_model.part_model.couplings import _2892

        return self.__parent__._cast(_2892.SpringDamper)

    @property
    def spring_damper_half(self: "CastSelf") -> "_2893.SpringDamperHalf":
        from mastapy._private.system_model.part_model.couplings import _2893

        return self.__parent__._cast(_2893.SpringDamperHalf)

    @property
    def synchroniser(self: "CastSelf") -> "_2894.Synchroniser":
        from mastapy._private.system_model.part_model.couplings import _2894

        return self.__parent__._cast(_2894.Synchroniser)

    @property
    def synchroniser_half(self: "CastSelf") -> "_2896.SynchroniserHalf":
        from mastapy._private.system_model.part_model.couplings import _2896

        return self.__parent__._cast(_2896.SynchroniserHalf)

    @property
    def synchroniser_part(self: "CastSelf") -> "_2897.SynchroniserPart":
        from mastapy._private.system_model.part_model.couplings import _2897

        return self.__parent__._cast(_2897.SynchroniserPart)

    @property
    def synchroniser_sleeve(self: "CastSelf") -> "_2898.SynchroniserSleeve":
        from mastapy._private.system_model.part_model.couplings import _2898

        return self.__parent__._cast(_2898.SynchroniserSleeve)

    @property
    def torque_converter(self: "CastSelf") -> "_2899.TorqueConverter":
        from mastapy._private.system_model.part_model.couplings import _2899

        return self.__parent__._cast(_2899.TorqueConverter)

    @property
    def torque_converter_pump(self: "CastSelf") -> "_2900.TorqueConverterPump":
        from mastapy._private.system_model.part_model.couplings import _2900

        return self.__parent__._cast(_2900.TorqueConverterPump)

    @property
    def torque_converter_turbine(self: "CastSelf") -> "_2902.TorqueConverterTurbine":
        from mastapy._private.system_model.part_model.couplings import _2902

        return self.__parent__._cast(_2902.TorqueConverterTurbine)

    @property
    def design_entity(self: "CastSelf") -> "DesignEntity":
        return self.__parent__

    def __getattr__(self: "CastSelf", name: str) -> "Any":
        try:
            return self.__getattribute__(name)
        except AttributeError:
            class_name = utility.camel(name)
            raise CastException(
                f'Detected an invalid cast. Cannot cast to type "{class_name}"'
            ) from None


@extended_dataclass(frozen=True, slots=True, weakref_slot=True, eq=False)
class DesignEntity(_0.APIBase):
    """DesignEntity

    This is a mastapy class.
    """

    TYPE: ClassVar["Type"] = _DESIGN_ENTITY

    wrapped: "Any"

    def __post_init__(self: "Self") -> None:
        """Override of the post initialisation magic method."""
        if not hasattr(self.wrapped, "reference_count"):
            self.wrapped.reference_count = 0

        self.wrapped.reference_count += 1

    @property
    @exception_bridge
    def comment(self: "Self") -> "str":
        """str"""
        temp = pythonnet_property_get(self.wrapped, "Comment")

        if temp is None:
            return ""

        return temp

    @comment.setter
    @exception_bridge
    @enforce_parameter_types
    def comment(self: "Self", value: "str") -> None:
        pythonnet_property_set(
            self.wrapped, "Comment", str(value) if value is not None else ""
        )

    @property
    @exception_bridge
    def full_name_without_root_name(self: "Self") -> "str":
        """str

        Note:
            This property is readonly.
        """
        temp = pythonnet_property_get(self.wrapped, "FullNameWithoutRootName")

        if temp is None:
            return ""

        return temp

    @property
    @exception_bridge
    def id(self: "Self") -> "str":
        """str

        Note:
            This property is readonly.
        """
        temp = pythonnet_property_get(self.wrapped, "ID")

        if temp is None:
            return ""

        return temp

    @property
    @exception_bridge
    def icon(self: "Self") -> "Image":
        """Image

        Note:
            This property is readonly.
        """
        temp = pythonnet_property_get(self.wrapped, "Icon")

        if temp is None:
            return None

        value = conversion.pn_to_mp_smt_bitmap(temp)

        if value is None:
            return None

        return value

    @property
    @exception_bridge
    def small_icon(self: "Self") -> "Image":
        """Image

        Note:
            This property is readonly.
        """
        temp = pythonnet_property_get(self.wrapped, "SmallIcon")

        if temp is None:
            return None

        value = conversion.pn_to_mp_smt_bitmap(temp)

        if value is None:
            return None

        return value

    @property
    @exception_bridge
    def unique_name(self: "Self") -> "str":
        """str

        Note:
            This property is readonly.
        """
        temp = pythonnet_property_get(self.wrapped, "UniqueName")

        if temp is None:
            return ""

        return temp

    @property
    @exception_bridge
    def design_properties(self: "Self") -> "_2450.Design":
        """mastapy.system_model.Design

        Note:
            This property is readonly.
        """
        temp = pythonnet_property_get(self.wrapped, "DesignProperties")

        if temp is None:
            return None

        type_ = temp.GetType()
        return constructor.new(type_.Namespace, type_.Name)(temp)

    @property
    @exception_bridge
    def all_design_entities(self: "Self") -> "List[DesignEntity]":
        """List[mastapy.system_model.DesignEntity]

        Note:
            This property is readonly.
        """
        temp = pythonnet_property_get(self.wrapped, "AllDesignEntities")

        if temp is None:
            return None

        value = conversion.pn_to_mp_objects_in_list(temp)

        if value is None:
            return None

        return value

    @property
    @exception_bridge
    def all_status_errors(self: "Self") -> "List[_2023.StatusItem]":
        """List[mastapy.utility.model_validation.StatusItem]

        Note:
            This property is readonly.
        """
        temp = pythonnet_property_get(self.wrapped, "AllStatusErrors")

        if temp is None:
            return None

        value = conversion.pn_to_mp_objects_in_list(temp)

        if value is None:
            return None

        return value

    @property
    @exception_bridge
    def status(self: "Self") -> "_2022.Status":
        """mastapy.utility.model_validation.Status

        Note:
            This property is readonly.
        """
        temp = pythonnet_property_get(self.wrapped, "Status")

        if temp is None:
            return None

        type_ = temp.GetType()
        return constructor.new(type_.Namespace, type_.Name)(temp)

    @property
    @exception_bridge
    def user_specified_data(self: "Self") -> "_1970.UserSpecifiedData":
        """mastapy.utility.scripting.UserSpecifiedData

        Note:
            This property is readonly.
        """
        temp = pythonnet_property_get(self.wrapped, "UserSpecifiedData")

        if temp is None:
            return None

        type_ = temp.GetType()
        return constructor.new(type_.Namespace, type_.Name)(temp)

    @property
    @exception_bridge
    def report_names(self: "Self") -> "List[str]":
        """List[str]

        Note:
            This property is readonly.
        """
        temp = pythonnet_property_get(self.wrapped, "ReportNames")

        if temp is None:
            return None

        value = conversion.pn_to_mp_objects_in_list(temp, str)

        if value is None:
            return None

        return value

    @exception_bridge
    def delete(self: "Self") -> None:
        """Method does not return."""
        pythonnet_method_call(self.wrapped, "Delete")

    @exception_bridge
    @enforce_parameter_types
    def output_default_report_to(self: "Self", file_path: "PathLike") -> None:
        """Method does not return.

        Args:
            file_path (PathLike)
        """
        file_path = str(file_path)
        pythonnet_method_call(self.wrapped, "OutputDefaultReportTo", file_path)

    @exception_bridge
    def get_default_report_with_encoded_images(self: "Self") -> "str":
        """str"""
        method_result = pythonnet_method_call(
            self.wrapped, "GetDefaultReportWithEncodedImages"
        )
        return method_result

    @exception_bridge
    @enforce_parameter_types
    def output_active_report_to(self: "Self", file_path: "PathLike") -> None:
        """Method does not return.

        Args:
            file_path (PathLike)
        """
        file_path = str(file_path)
        pythonnet_method_call(self.wrapped, "OutputActiveReportTo", file_path)

    @exception_bridge
    @enforce_parameter_types
    def output_active_report_as_text_to(self: "Self", file_path: "PathLike") -> None:
        """Method does not return.

        Args:
            file_path (PathLike)
        """
        file_path = str(file_path)
        pythonnet_method_call(self.wrapped, "OutputActiveReportAsTextTo", file_path)

    @exception_bridge
    def get_active_report_with_encoded_images(self: "Self") -> "str":
        """str"""
        method_result = pythonnet_method_call(
            self.wrapped, "GetActiveReportWithEncodedImages"
        )
        return method_result

    @exception_bridge
    @enforce_parameter_types
    def output_named_report_to(
        self: "Self", report_name: "str", file_path: "PathLike"
    ) -> None:
        """Method does not return.

        Args:
            report_name (str)
            file_path (PathLike)
        """
        report_name = str(report_name)
        file_path = str(file_path)
        pythonnet_method_call(
            self.wrapped,
            "OutputNamedReportTo",
            report_name if report_name else "",
            file_path,
        )

    @exception_bridge
    @enforce_parameter_types
    def output_named_report_as_masta_report(
        self: "Self", report_name: "str", file_path: "PathLike"
    ) -> None:
        """Method does not return.

        Args:
            report_name (str)
            file_path (PathLike)
        """
        report_name = str(report_name)
        file_path = str(file_path)
        pythonnet_method_call(
            self.wrapped,
            "OutputNamedReportAsMastaReport",
            report_name if report_name else "",
            file_path,
        )

    @exception_bridge
    @enforce_parameter_types
    def output_named_report_as_text_to(
        self: "Self", report_name: "str", file_path: "PathLike"
    ) -> None:
        """Method does not return.

        Args:
            report_name (str)
            file_path (PathLike)
        """
        report_name = str(report_name)
        file_path = str(file_path)
        pythonnet_method_call(
            self.wrapped,
            "OutputNamedReportAsTextTo",
            report_name if report_name else "",
            file_path,
        )

    @exception_bridge
    @enforce_parameter_types
    def get_named_report_with_encoded_images(self: "Self", report_name: "str") -> "str":
        """str

        Args:
            report_name (str)
        """
        report_name = str(report_name)
        method_result = pythonnet_method_call(
            self.wrapped,
            "GetNamedReportWithEncodedImages",
            report_name if report_name else "",
        )
        return method_result

    @property
    def cast_to(self: "Self") -> "_Cast_DesignEntity":
        """Cast to another type.

        Returns:
            _Cast_DesignEntity
        """
        return _Cast_DesignEntity(self)
