> ## 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 ProfileSprocketBase

Namespace: [VM.Managed.CAD.Sprocket](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.CAD.Sprocket)\
Assembly: VMDSprocket.dll

The base class is sprocket profile.

```csharp theme={null}
public abstract class ProfileSprocketBase
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[ProfileSprocketBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.CAD.Sprocket.ProfileSprocketBase.md)

#### Derived

[ProfileSprocket\_ASA](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.CAD.Sprocket.ProfileSprocket_ASA.md),
[ProfileSprocket\_BS](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.CAD.Sprocket.ProfileSprocket_BS.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/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/2025-r2/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/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### ProfileSprocketBase(ProfileDataSprocket)

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

```csharp theme={null}
public ProfileSprocketBase(ProfileDataSprocket info)
```

#### Parameters

`info` [ProfileDataSprocket](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.CAD.Sprocket.ProfileDataSprocket.md)

The info is data for creation profile.

## Fields

### m\_Info

The info is data for creation profile

```csharp theme={null}
protected ProfileDataSprocket m_Info
```

#### Field Value

[ProfileDataSprocket](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.CAD.Sprocket.ProfileDataSprocket.md)

### m\_dRadius\_shift

Shift radius value.

```csharp theme={null}
protected double m_dRadius_shift
```

#### Field Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### m\_lstPtOrigin

The original point data.

```csharp theme={null}
protected List<VectorBase> m_lstPtOrigin
```

#### Field Value

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<VectorBase>

### m\_lstPtWorkPlane

The transformed point data to work plane.

```csharp theme={null}
protected List<VectorBase> m_lstPtWorkPlane
```

#### Field Value

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<VectorBase>

### m\_strError

Set error message when can not calculate profile.

```csharp theme={null}
protected string m_strError
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

## Properties

### Radius\_Shift

Gets shift radius value.

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

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

## Methods

### Calculation\_Gradient(VectorBase, VectorBase)

Find the gradient of line equation

```csharp theme={null}
protected double Calculation_Gradient(VectorBase _ptArbitrary1, VectorBase _ptArbitrary2)
```

#### Parameters

`_ptArbitrary1` VectorBase

The arbitrary point.

`_ptArbitrary2` VectorBase

The arbitrary point.

#### Returns

[double](https://learn.microsoft.com/dotnet/api/system.double)

The gradient

### Calculation\_Gradient\_Bewteen\_ArbitraryPoint\_and\_Circle(VectorBase, VectorBase, double)

Called when the gradient calculate between arbitrary point and circle.

```csharp theme={null}
protected double[] Calculation_Gradient_Bewteen_ArbitraryPoint_and_Circle(VectorBase _ptArbitrary, VectorBase ptCenterofCircle, double _dRadiusofCircle)
```

#### Parameters

`_ptArbitrary` VectorBase

The arbitrary point.

`ptCenterofCircle` VectorBase

The center point of circle.

`_dRadiusofCircle` [double](https://learn.microsoft.com/dotnet/api/system.double)

The radius of circle.

#### Returns

[double](https://learn.microsoft.com/dotnet/api/system.double)\[]

The array of gradient.

### Calculation\_TangentPoint\_Through\_Line\_Circle(double, VectorBase, VectorBase, double)

Called when tangent points calculates through line to circle.

```csharp theme={null}
protected List<VectorBase> Calculation_TangentPoint_Through_Line_Circle(double dGradient, VectorBase _ptArbitrary, VectorBase ptCenterofCircle, double _dRadiusofCircle)
```

#### Parameters

`dGradient` [double](https://learn.microsoft.com/dotnet/api/system.double)

The gradient.

`_ptArbitrary` VectorBase

The arbitrary point.

`ptCenterofCircle` VectorBase

The center point of circle.

`_dRadiusofCircle` [double](https://learn.microsoft.com/dotnet/api/system.double)

The radius of circle.

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<VectorBase>

The list of points

### Calculation\_TangentPosition(double, VectorBase, VectorBase, double)

Called when tangent points calculates bewteen arbitrary point and circle.

```csharp theme={null}
protected double[] Calculation_TangentPosition(double dGradient, VectorBase _ptArbitrary, VectorBase ptCenterofCircle, double _dRadiusofCircle)
```

#### Parameters

`dGradient` [double](https://learn.microsoft.com/dotnet/api/system.double)

The gradient.

`_ptArbitrary` VectorBase

The arbitrary point.

`ptCenterofCircle` VectorBase

The center point of circle.

`_dRadiusofCircle` [double](https://learn.microsoft.com/dotnet/api/system.double)

The radius of circle.

#### Returns

[double](https://learn.microsoft.com/dotnet/api/system.double)\[]

The tangent point.

### Calculation\_line\_Equation(VectorBase, double, ref double)

Find line equation

```csharp theme={null}
protected void Calculation_line_Equation(VectorBase _ptArbitrary, double _dGradient, ref double _dConstant)
```

#### Parameters

`_ptArbitrary` VectorBase

The arbitrary point.

`_dGradient` [double](https://learn.microsoft.com/dotnet/api/system.double)

y=mx+n`m`

`_dConstant` [double](https://learn.microsoft.com/dotnet/api/system.double)

y=mx+n`n`

### Claculation\_TangentPoint\_Between\_Two\_Circle(VectorBase, double, VectorBase, double)

Called when tangent points calculates bewteen two circles.

```csharp theme={null}
protected List<VectorBase> Claculation_TangentPoint_Between_Two_Circle(VectorBase ptCenter1, double dR1, VectorBase ptCenter2, double dR2)
```

#### Parameters

`ptCenter1` VectorBase

The center position

`dR1` [double](https://learn.microsoft.com/dotnet/api/system.double)

The radius.

`ptCenter2` VectorBase

The center position.

`dR2` [double](https://learn.microsoft.com/dotnet/api/system.double)

The radius.

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<VectorBase>

The list of points

### CreateProfile()

Create profile data.

```csharp theme={null}
protected virtual bool CreateProfile()
```

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### GetPointData\_For\_WorkPlane()

Gets points data on work plane.

```csharp theme={null}
public List<VectorBase> GetPointData_For_WorkPlane()
```

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<VectorBase>

### GetPointData\_For\_XYPlane()

Gets points data on XY plane.

```csharp theme={null}
public List<VectorBase> GetPointData_For_XYPlane()
```

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<VectorBase>

### Validation()

Check validation of member variables

```csharp theme={null}
protected virtual bool Validation()
```

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### matvec(double\[], VectorBase)

```csharp theme={null}
protected VectorBase matvec(double[] mat, VectorBase vecA)
```

#### Parameters

`mat` [double](https://learn.microsoft.com/dotnet/api/system.double)\[]

`vecA` VectorBase

#### Returns

VectorBase

### vectlvec(VectorBase, VectorBase)

```csharp theme={null}
protected VectorBase vectlvec(VectorBase vecA, VectorBase vecB)
```

#### Parameters

`vecA` VectorBase

`vecB` VectorBase

#### Returns

VectorBase

### vectranspose\_vectieldvec(VectorBase, VectorBase, VectorBase)

```csharp theme={null}
protected double vectranspose_vectieldvec(VectorBase vecDepth, VectorBase vecA, VectorBase vecB)
```

#### Parameters

`vecDepth` VectorBase

`vecA` VectorBase

`vecB` VectorBase

#### Returns

[double](https://learn.microsoft.com/dotnet/api/system.double)
