    

 ## On this page

  

 

 # Class AddEntityBase

 Last update: 09.03.2026 

<a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase"></a>

Namespace: [VM.Managed.DAFUL.Builder.GearTrain](VM.Managed.DAFUL.Builder.GearTrain.md)  
Assembly: VMBldGearTrain.dll

```csharp
public class AddEntityBase : IBuilder

```

#### Inheritance

object ← [AddEntityBase](VM.Managed.DAFUL.Builder.GearTrain.AddEntityBase.md)

#### Derived

[AddBearingToRBEInMeshBase](VM.Managed.DAFUL.Builder.GearTrain.AddBearingToRBEInMeshBase.md), [AddDesignerToShaftBase](VM.Managed.DAFUL.Builder.GearTrain.AddDesignerToShaftBase.md), [AddGearEntityBase](VM.Managed.DAFUL.Builder.GearTrain.AddGearEntityBase.md), [AddSlidingBearingToRBEInMeshBase](VM.Managed.DAFUL.Builder.GearTrain.AddSlidingBearingToRBEInMeshBase.md)

#### Implements

IBuilder

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase__ctor"></a> AddEntityBase()

```csharp
public AddEntityBase()

```

## Fields

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_m_bSuccess"></a> m\_bSuccess

```csharp
protected bool m_bSuccess

```

#### Field Value

bool

## Properties

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_AllowCheckError"></a> AllowCheckError

```csharp
public static bool AllowCheckError { get; set; }

```

#### Property Value

bool

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_BuildObject"></a> BuildObject

```csharp
public ObjectBase BuildObject { get; }

```

#### Property Value

ObjectBase

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_InputArray"></a> InputArray

```csharp
public string[] InputArray { get; set; }

```

#### Property Value

string\[\]

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_Parameters"></a> Parameters

```csharp
public PickedResult[] Parameters { get; set; }

```

#### Property Value

[PickedResult](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Builders/VMBld/PickedResult.cs)\[\]

## Methods

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_AddNewReference_VM_Managed_ObjectBase_"></a> AddNewReference(ObjectBase)

```csharp
protected void AddNewReference(ObjectBase objectBase)

```

#### Parameters

`objectBase` ObjectBase

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_Build_VM_Managed_Document_"></a> Build(Document)

```csharp
public virtual void Build(Document docToAdd)

```

#### Parameters

`docToAdd` Document

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_CheckMissShaft_System_String_System_Double_System_Double_System_Double_System_String_System_String_System_Double__VM_Managed_DAFUL_GearTrain_CAD_ReferencePointType__"></a> CheckMissShaft(string, double, double, double, string, string, ref double, ref ReferencePointType)

```csharp
protected bool CheckMissShaft(string strRP, double dOffset, double dDepth, double shaftLength, string strError, string strCaption, ref double dTotalOffset, ref ReferencePointType typeRP)

```

#### Parameters

`strRP` string

`dOffset` double

`dDepth` double

`shaftLength` double

`strError` string

`strCaption` string

`dTotalOffset` double

`typeRP` ReferencePointType

#### Returns

bool

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_CheckNodesetWithTreatRBE_VM_Managed_DAFUL_HiddenDocument_System_String_"></a> CheckNodesetWithTreatRBE(HiddenDocument, string)

```csharp
protected bool CheckNodesetWithTreatRBE(HiddenDocument hiddenDoc, string strRBE)

```

#### Parameters

`hiddenDoc` [HiddenDocument](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDFBase/HiddenDocument.cs)

`strRBE` string

#### Returns

bool

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_CheckOverlap_System_Collections_Generic_List_System_Double____System_Double_System_Double_System_String_System_String_"></a> CheckOverlap(List&lt;double\[\]&gt;, double, double, string, string)

```csharp
protected bool CheckOverlap(List<double[]> lstOverlap, double dTotalOffset, double dDepth, string strError, string strCaption)

```

#### Parameters

`lstOverlap` List&lt;double\[\]&gt;

`dTotalOffset` double

`dDepth` double

`strError` string

`strCaption` string

#### Returns

bool

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_CheckSection_VM_Managed_DAFUL_GearTrain_HiddenShaftSetDocument_System_String_"></a> CheckSection(HiddenShaftSetDocument, string)

```csharp
protected bool CheckSection(HiddenShaftSetDocument hiddenDoc, string strCaption)

```

#### Parameters

`hiddenDoc` [HiddenShaftSetDocument](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/HiddenShaftSetDocument.cs)

`strCaption` string

#### Returns

bool

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_GetGearInfo_VM_Managed_DAFUL_GearTrain_GearTrainDocument_VM_Managed_DAFUL_GearTrain_GearGeometryInfo__VM_Managed_DAFUL_GearTrain_IGearSet__VM_Managed_DAFUL_GearTrain_WebPropertyValue__"></a> GetGearInfo(GearTrainDocument, ref GearGeometryInfo, ref IGearSet, ref WebPropertyValue)

```csharp
protected void GetGearInfo(GearTrainDocument docGT, ref GearGeometryInfo ggInfo, ref IGearSet gearSet, ref WebPropertyValue webValue)

```

#### Parameters

`docGT` [GearTrainDocument](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/GearTrainDocument.cs)

`ggInfo` [GearGeometryInfo](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/GearGeometryInfo.cs)

`gearSet` IGearSet

`webValue` [WebPropertyValue](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/GearInfo.cs)

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_GetRollingBearingInfo_VM_Managed_DAFUL_GearTrain_GearTrainDocument_VM_Managed_DAFUL_GearTrain_RacewayGeometryInfo__VM_Managed_DAFUL_GearTrain_Bearing__"></a> GetRollingBearingInfo(GearTrainDocument, ref RacewayGeometryInfo, ref Bearing)

```csharp
protected void GetRollingBearingInfo(GearTrainDocument docGT, ref RacewayGeometryInfo geom_info, ref Bearing bearing)

```

#### Parameters

`docGT` [GearTrainDocument](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/GearTrainDocument.cs)

`geom_info` [RacewayGeometryInfo](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/BearingRacewayGeometryInfo.cs)

`bearing` [Bearing](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/Bearing.cs)

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_GetSlidingBearingInfo_VM_Managed_DAFUL_GearTrain_GearTrainDocument_VM_Managed_DAFUL_GearTrain_SBGeometryInfo__VM_Managed_DAFUL_GearTrain_SlidingBearing__VM_Managed_DAFUL_GearTrain_enSBContactType__"></a> GetSlidingBearingInfo(GearTrainDocument, ref SBGeometryInfo, ref SlidingBearing, ref enSBContactType)

```csharp
protected void GetSlidingBearingInfo(GearTrainDocument docGT, ref SBGeometryInfo geom_info, ref SlidingBearing bearing, ref enSBContactType enCType)

```

#### Parameters

`docGT` [GearTrainDocument](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/GearTrainDocument.cs)

`geom_info` [SBGeometryInfo](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/SlidingBearing.cs)

`bearing` [SlidingBearing](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/SlidingBearing.cs)

`enCType` enSBContactType

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_MatchGear_VM_Managed_DAFUL_GearTrain_IGearSet_System_Collections_Generic_List_VM_Managed_DAFUL_GearTrain_CAD_IGearBuilder__"></a> MatchGear(IGearSet, List&lt;IGearBuilder&gt;)

```csharp
protected void MatchGear(IGearSet gearSet, List<IGearBuilder> lstRes)

```

#### Parameters

`gearSet` IGearSet

`lstRes` List&lt;IGearBuilder&gt;

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_SetClearance_VM_Managed_DAFUL_GearTrain_ClearanceInfo_"></a> SetClearance(ClearanceInfo)

```csharp
protected void SetClearance(ClearanceInfo cInfo)

```

#### Parameters

`cInfo` [ClearanceInfo](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/GeometryInfoBase.cs)

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_SetColor_VM_Managed_CAD_BuilderColor_VM_Managed_CAD_BuilderColorGeom_VM_Managed_DAFUL_GearTrain_CAD_AddedWebBuilder_"></a> SetColor(BuilderColor, BuilderColorGeom, AddedWebBuilder)

```csharp
protected void SetColor(BuilderColor color, BuilderColorGeom gearsetBuilder, AddedWebBuilder webBuilder)

```

#### Parameters

`color` BuilderColor

`gearsetBuilder` BuilderColorGeom

`webBuilder` [AddedWebBuilder](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/WebBuilder.cs)

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_Success"></a> Success()

```csharp
public bool Success()

```

#### Returns

bool

### <a id="VM_Managed_DAFUL_Builder_GearTrain_AddEntityBase_Validate_System_Collections_Generic_IList_System_String__"></a> Validate(IList&lt;string&gt;)

```csharp
public virtual bool Validate(IList<string> lstErrorMessage)

```

#### Parameters

`lstErrorMessage` IList&lt;string&gt;

#### Returns

bool