> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class GearBuilder

Namespace: [VM.Managed.DAFUL.GearTrain.CAD](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD)\
Assembly: VMDGearTrain.dll

The gear builder

```csharp theme={null}
public class GearBuilder : BuilderColorGeom, IObservableObject, IDisposableObject, ILinkable, IObjectBase, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, IHasKeyObject, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, IHasReplaceableEntity, IGeometryBuilder, IGearBuilder, IGTBuilder, IAddOnBearing
```

#### Inheritance

object ←
ObservableObject ←
[LinkableBase](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Pre/Data/VM.Models.Pre/Models/LinkableBase.cs) ←
ObjectBase ←
Object\<ObjectEventCore> ←
Builder ←
BuilderTransform ←
BuilderColorGeom ←
[GearBuilder](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.GearBuilder.md)

#### Derived

[AddedGearBuilder](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.AddedGearBuilder.md),
[GearBuilderForSolidBody](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.GearBuilderForSolidBody.md)

#### Implements

IObservableObject,
IDisposableObject,
ILinkable,
IObjectBase,
IObject,
ILinkContainer,
IOwned,
IHasID,
IEventProvider,
IHasKeyObject,
ILinkContainerEvent,
IVerifiable,
[IHistoryObjectSerializable](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/Interfaces.cs),
IAttributeContainer,
IHasReplaceableEntity,
[IGeometryBuilder](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.IGeometryBuilder.md),
[IGearBuilder](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.IGearBuilder.md),
[IGTBuilder](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.IGTBuilder.md),
[IAddOnBearing](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.IAddOnBearing.md)

#### Inherited Members

BuilderColorGeom.m\_color,
BuilderColorGeom.CheckValidationAboutBuild(),
BuilderColorGeom.OnDeserialization(object),
BuilderColorGeom.FillParameter(BuilderParamBase),
BuilderColorGeom.Color,
BuilderColorGeom.DrawingColor,
BuilderTransform.SetTransform(TMatrix),
BuilderTransform.IsParameterized,
Builder.CheckValidationAboutBuild(),
Builder.CheckCircularReference(ObjectBase),
Builder.ChangeDataForCircularReference(),
Builder.GetUnnamedObjectName(object),
Builder.FindLocal(string),
Builder.CopyFilePathWhenImportBuilder(Builder),
Builder.Contains(Type),
Builder.GetBodyType(),
Builder.ReplaceData(string, object),
Builder.GetNameAttribute(string, ref List\<string>),
Builder.AddUneditableAttribute(),
Builder.GetParentBody(),
Builder.Clone(),
Builder.Initialize(Unit.ConvertFactor),
Builder.OnDeserialization(object),
Builder.CreateParameter(),
Builder.FillParameter(BuilderParamBase),
Builder.LinkRequestUpdate(object, LinkEventArgs),
Builder.PostWorkWhenFailedToGetXmlString(),
Builder.GetFilledParameter(),
Builder.GetXmlString(),
Builder.HasReplaceableEntity(IObjectBase),
Builder.ReplaceEntity(IObjectBase, IObjectBase),
Builder.GetFactorForLength(),
Builder.CheckCircularReferenceForPoint(PointBase, ObjectBase),
Builder.CheckCircularReferenceForDirection(DirectionBase, ObjectBase),
Builder.CheckCircularReferenceForOrientation(OrientationBase, ObjectBase),
Builder.CheckCircularReferenceForTransform(TransformBase, ObjectBase),
Builder.GetUnitScale(),
Builder.InitialKernelLengthUnit,
Builder.IsExternable,
Builder.Uneditable,
Builder.TypeOfBuilder,
Builder.Transparency,
Object\<ObjectEventCore>.GetKey(),
Object\<ObjectEventCore>.Initialize(Unit.ConvertFactor),
Object\<ObjectEventCore>.SetIconColor(Canvas),
Object\<ObjectEventCore>.OnDeserialization(object),
Object\<ObjectEventCore>.CustomGetObjectData(SerializationInfo, StreamingContext),
Object\<ObjectEventCore>.RollbackEvent(),
Object\<ObjectEventCore>.OnDeserializedCore(object),
Object\<ObjectEventCore>.Key,
Object\<ObjectEventCore>.UntypedEventCore,
Object\<ObjectEventCore>.EventCore,
Object\<ObjectEventCore>.Attributes,
ObjectBase.ReplaceEventCore(ObjectEventCore),
ObjectBase.SetModifiedCore(ModifiedResult.ModifiedType),
ObjectBase.AddPostDeserialize(StreamingContext),
ObjectBase.LinkAddedToDocumentCore(IOwned, bool),
ObjectBase.SetModified(ModifiedResult.ModifiedType),
ObjectBase.SetModified(),
ObjectBase.SetModified(ModifiedResult.ModifiedType, IDocument),
ObjectBase.DestroyObject(object, LinkEventArgs),
ObjectBase.DestroyObject(DestroyEventArgs),
ObjectBase.DestroyObject(),
ObjectBase.Initialize(Unit.ConvertFactor),
ObjectBase.FixUp(ObjectBase),
ObjectBase.DoWorkAfterUpdateContents(),
ObjectBase.SetOldNameWithNewEntity(ObjectBase, ObjectBase),
ObjectBase.SetIconColor(Canvas),
ObjectBase.RemoveFromCreatedList(),
ObjectBase.PostAddToDocument(),
ObjectBase.PostRemoveFromDocument(Document),
ObjectBase.GetArgumentList(LinkedList\<ObjectBase>),
ObjectBase.ResetInvalidEntity(),
ObjectBase.OnDeserialization(object),
ObjectBase.IsSerializableEvent(Delegate),
ObjectBase.CustomGetObjectData(SerializationInfo, StreamingContext),
ObjectBase.CheckAndUpdateLink(HashSet\<ObjectBase>),
ObjectBase.Verify(VerifiedResult),
ObjectBase.ConnectProxy(),
ObjectBase.RollbackEvent(),
ObjectBase.LinkRequestUpdating(object, LinkEventArgs),
ObjectBase.LinkRequestUpdate(object, LinkEventArgs),
ObjectBase.LinkRequestDestroying(object, LinkEventArgs),
ObjectBase.LinkRequestDestroy(object, LinkEventArgs),
ObjectBase.LinkAddedToDocument(object, AddToDocEventArgs),
ObjectBase.LinkRemovedFromDocument(object, RemoveFromDocEventArgs),
ObjectBase.DisposeManagedResources(),
ObjectBase.GetDestroyEventExtraData(),
ObjectBase.OnLinkReserved(ILink, object, EventArgs),
ObjectBase.CreateEntityWhenUpdateContents(Action),
ObjectBase.GetObjectByKey(UIntPtr),
ObjectBase.FindObjectOnXmlDeserialize(string),
ObjectBase.UpdateContents(XmlReader, ObjectBase, string),
ObjectBase.UpdateContents(XmlReader, ObjectBase),
ObjectBase.UpdateContents(string, string),
ObjectBase.UpdateContents(string),
ObjectBase.SetFlagWhenXMLFile(string, bool),
ObjectBase.IsEqualArray\<T>(T\[], T\[]),
ObjectBase.IsEqualList(List\<double>, List\<double>),
ObjectBase.SetContainer(IOwned, bool),
ObjectBase.GetTargetListForUpdate(),
ObjectBase.SkipUpdateObjectImpl(),
ObjectBase.raise\_OnUpdating(object, LinkEventArgs),
ObjectBase.raise\_OnUpdate(object, LinkEventArgs),
ObjectBase.raise\_OnDestroying(object, LinkEventArgs),
ObjectBase.raise\_OnDestroy(object, LinkEventArgs),
ObjectBase.raise\_Destroying(object, Identifier),
ObjectBase.raise\_OnAdded(object, AddToDocEventArgs),
ObjectBase.raise\_OnRemoved(object, RemoveFromDocEventArgs),
ObjectBase.raise\_OnContentsUpdated(object, EventArgs),
ObjectBase.Dispose(bool),
ObjectBase.SkipModified,
ObjectBase.ClearChildInfoBeforeDeserialize,
ObjectBase.KeyImpl,
ObjectBase.ID,
ObjectBase.TopologyEntityTypeName,
ObjectBase.ObjectStateForCircularError,
ObjectBase.ObjectState,
ObjectBase.IsChildExternable,
ObjectBase.IsExternable,
ObjectBase.Container,
ObjectBase.Owner,
ObjectBase.Document,
ObjectBase.UntypedEventCore,
ObjectBase.KernelKey,
ObjectBase.Key,
ObjectBase.OnContentsUpdated,
ObjectBase.OnRemoved,
ObjectBase.OnAdded,
ObjectBase.Destroying,
ObjectBase.OnDestroy,
ObjectBase.OnDestroying,
ObjectBase.OnUpdate,
ObjectBase.OnUpdating,
[LinkableBase.OnDeserialization(object)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Pre/Data/VM.Models.Pre/Models/LinkableBase.cs),
ObservableObject.Dispose(),
ObservableObject.RaisePropertyChanged(string),
ObservableObject.RaisePropertyChanged(string, object, object),
ObservableObject.Dispose(bool),
ObservableObject.DisposeManagedResources(),
ObservableObject.DisposeUnmanagedResources(),
ObservableObject.IsDisposed,
ObservableObject.TryDisposing,
ObservableObject.Disposed,
ObservableObject.Disposing,
ObservableObject.PropertyChanged

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### GearBuilder()

Initializes a new instance of the [GearBuilder](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.GearBuilder.md) class.

```csharp theme={null}
public GearBuilder()
```

## Properties

### BearingPoint

Gets or sets the bearing point.

```csharp theme={null}
public PointBase BearingPoint { get; set; }
```

#### Property Value

PointBase

### ConnectableEntity

Gets the ConnectableEntity.

```csharp theme={null}
public IConnectable ConnectableEntity { get; }
```

#### Property Value

IConnectable

### GearGeometryInformation

Gets or sets the gear geometry information.

```csharp theme={null}
public virtual GearGeometryInfo GearGeometryInformation { get; set; }
```

#### Property Value

[GearGeometryInfo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearGeometryInfo.md)

### IsDesigner

Gets or sets a value indicating whether this instance is designer.
Use SetDesigner() when this instance sets for undo/redo

```csharp theme={null}
public bool IsDesigner { get; set; }
```

#### Property Value

bool

### MateAngle

Gets or sets the mate angle.
Use SetMateAngle() when this instance sets for undo/redo

```csharp theme={null}
public double MateAngle { get; set; }
```

#### Property Value

double

### OffsetToAxisDirection

Gets the offset to axis direction.

```csharp theme={null}
public double OffsetToAxisDirection { get; }
```

#### Property Value

double

### Position

Gets the position.

```csharp theme={null}
public VectorBase Position { get; }
```

#### Property Value

VectorBase

### ReferenceOffset

Gets or sets the reference offset.
Use SetReferenceOffset() when this instance sets for undo/redo

```csharp theme={null}
public double ReferenceOffset { get; set; }
```

#### Property Value

double

### ReferencePoint

Gets or sets the reference point.
Use SetReferencePoint() when this instance sets for undo/redo

```csharp theme={null}
public ReferencePointType ReferencePoint { get; set; }
```

#### Property Value

[ReferencePointType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.ReferencePointType.md)

### Rotation

Gets or sets the rotation.
Use SetRotation() when this instance sets for undo/redo

```csharp theme={null}
public OMatrix Rotation { get; set; }
```

#### Property Value

OMatrix

### StartPoint

Gets or sets the start point.

```csharp theme={null}
public PointBase StartPoint { get; set; }
```

#### Property Value

PointBase

### TypeOfParent

Gets or sets the type of parent.
Use SetTypeOfParent() when this instance sets for undo/redo

```csharp theme={null}
public GearBuilder.ParentType TypeOfParent { get; set; }
```

#### Property Value

[GearBuilder](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.GearBuilder.md).[ParentType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.GearBuilder.ParentType.md)

## Methods

### CreateParameter()

```csharp theme={null}
protected override BuilderParamBase CreateParameter()
```

#### Returns

[BuilderParamBase](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VM.CAD.Builders/VM.CAD.Builders/VMAppCore/BuilderParamBase.cs)

### FillParameter(BuilderParamBase)

```csharp theme={null}
protected override void FillParameter(BuilderParamBase parameter)
```

#### Parameters

`parameter` [BuilderParamBase](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VM.CAD.Builders/VM.CAD.Builders/VMAppCore/BuilderParamBase.cs)

### GetLengthAndHeight(ref double, ref double)

Gets the height of the length and.

```csharp theme={null}
public void GetLengthAndHeight(ref double dLength, ref double dHeight)
```

#### Parameters

`dLength` double

Length of the d.

`dHeight` double

Height of the d.

### GetOMatrixWithTwoDirection(VectorBase, VectorBase)

Gets the o matrix with two direction.

```csharp theme={null}
public static OMatrix GetOMatrixWithTwoDirection(VectorBase vecZ, VectorBase vecRefer)
```

#### Parameters

`vecZ` VectorBase

The vec z.

`vecRefer` VectorBase

The vec refer.

#### Returns

OMatrix

### Initialize(ConvertFactor)

Initializes the specified factor.

```csharp theme={null}
public override void Initialize(Unit.ConvertFactor factor)
```

#### Parameters

`factor` Unit.ConvertFactor

The factor.

### LinkRequestDestroying(object, LinkEventArgs)

Request for destroying the linked object.

```csharp theme={null}
protected override void LinkRequestDestroying(object objNotifier, LinkEventArgs arg)
```

#### Parameters

`objNotifier` object

The linked object.

`arg` LinkEventArgs

The [LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.LinkEventArgs.md) instance containing the event data.

### LinkRequestUpdate(object, LinkEventArgs)

Links the request update.

```csharp theme={null}
protected override void LinkRequestUpdate(object objNotifier, LinkEventArgs arg)
```

#### Parameters

`objNotifier` object

The object notifier.

`arg` LinkEventArgs

The [LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.LinkEventArgs.md) instance containing the event data.

### SetDesigner(bool)

Set designer flag.

```csharp theme={null}
public void SetDesigner(bool bFlag)
```

#### Parameters

`bFlag` bool

The designer flag.

### SetMateAngle(double)

Set mate angle.

```csharp theme={null}
public void SetMateAngle(double dMateAngle)
```

#### Parameters

`dMateAngle` double

The mate angle.

### SetReferenceOffset(double)

Set reference offset.

```csharp theme={null}
public void SetReferenceOffset(double dOffset)
```

#### Parameters

`dOffset` double

The reference offset.

### SetReferencePoint(ReferencePointType)

Set reference point.

```csharp theme={null}
public void SetReferencePoint(ReferencePointType type)
```

#### Parameters

`type` [ReferencePointType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.ReferencePointType.md)

The reference point.

### SetRotation(OMatrix)

Set rotation.

```csharp theme={null}
public void SetRotation(OMatrix mat)
```

#### Parameters

`mat` OMatrix

The matrix.

### SetTypeOfParent(ParentType)

Set type of parent.

```csharp theme={null}
public void SetTypeOfParent(GearBuilder.ParentType type)
```

#### Parameters

`type` [GearBuilder](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.GearBuilder.md).[ParentType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.GearBuilder.ParentType.md)

The type of parent.

### UpdateGearGeometry(Section, bool)

Sets the shaft radius.

```csharp theme={null}
public bool UpdateGearGeometry(Section secFind, bool bDesigner)
```

#### Parameters

`secFind` [Section](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.Section.md)

The sec find.

`bDesigner` bool

The designer flag.

#### Returns

bool

### UpdateGeometry(HiddenDocument, ParentType, double, ReferencePointType, Vector)

Updates the geometry.

```csharp theme={null}
public void UpdateGeometry(HiddenDocument hiddenDoc, GearBuilder.ParentType typeP, double dReferenceOffset, ReferencePointType typeRP, Vector vecBearingPoint)
```

#### Parameters

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

The hidden document.

`typeP` [GearBuilder](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.GearBuilder.md).[ParentType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.GearBuilder.ParentType.md)

The type p.

`dReferenceOffset` double

The d reference offset.

`typeRP` [ReferencePointType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.CAD.ReferencePointType.md)

The type rp.

`vecBearingPoint` Vector

The vec bearing point.
