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

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

This class generates segment\`s transformation data.

```csharp theme={null}
public class GenerateDataForChainedPlacing
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[GenerateDataForChainedPlacing](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Chained.GenerateDataForChainedPlacing.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

### GenerateDataForChainedPlacing()

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

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

## Fields

### m\_FirstCheckCrossTangent

```csharp theme={null}
public bool m_FirstCheckCrossTangent
```

#### Field Value

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

## Methods

### Add\_PathList(PathInfo)

add the PathInfo

```csharp theme={null}
public void Add_PathList(PathInfo path)
```

#### Parameters

`path` [PathInfo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Chained.PathInfo.md)

Path information

### Add\_SegmentList(SegmentInfo)

add the SegmentInfo

```csharp theme={null}
public void Add_SegmentList(SegmentInfo segment)
```

#### Parameters

`segment` [SegmentInfo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Chained.SegmentInfo.md)

Segment Information

### CalculatePositionAndOrietationOfSegment(int, ref SegmentPlacingInfo\[])

Calculate position and orietation of segments.

```csharp theme={null}
public bool CalculatePositionAndOrietationOfSegment(int _pznSegment, ref SegmentPlacingInfo[] arPlacingInfo)
```

#### Parameters

`_pznSegment` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The number of segment.

`arPlacingInfo` [SegmentPlacingInfo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Chained.SegmentPlacingInfo.md)\[]

The array including data for placing.

#### Returns

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

if the position and orientation of segments are calculated successfully, it is true.

### Calculate\_Gap(int, ref double)

Calculate the gap.

```csharp theme={null}
public bool Calculate_Gap(int nTotalNoOfSegment, ref double dGap)
```

#### Parameters

`nTotalNoOfSegment` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The Number of segment.

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

The gap.

#### Returns

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

if the gap is calculated successfully, it is true.

### Calculate\_NoOfSegmentAndGap(ref int, ref double)

Calculate number of segment and gap.

```csharp theme={null}
public bool Calculate_NoOfSegmentAndGap(ref int nSegment, ref double dGap)
```

#### Parameters

`nSegment` [int](https://learn.microsoft.com/dotnet/api/system.int32)

Number of segment.Initial value must be -1.

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

The gap.

#### Returns

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

if the number of segment and gap are calculated successfully, it is true.

### GetNthPathInfo(int)

Gets Nth PathInfo data.

```csharp theme={null}
public PathInfo GetNthPathInfo(int Nth)
```

#### Parameters

`Nth` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The Index.

#### Returns

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

The PathInfo.

### GetNthSegmentInfo(int)

Gets Nth SegmentInfo data.

```csharp theme={null}
public SegmentInfo GetNthSegmentInfo(int Nth)
```

#### Parameters

`Nth` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The index.

#### Returns

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

The SegmentInfo.

### Initialize\_PathList()

Initialize list of PathInfo

```csharp theme={null}
public void Initialize_PathList()
```

### Initialize\_PlacingData()

Initialize and calculate the data for cunstruction chained system.

```csharp theme={null}
public GenerateDataForChainedPlacing.PlacingDataResultType Initialize_PlacingData()
```

#### Returns

[GenerateDataForChainedPlacing](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Chained.GenerateDataForChainedPlacing.md).[PlacingDataResultType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Chained.GenerateDataForChainedPlacing.PlacingDataResultType.md)

`true` if success; otherwise, `false`.

### Initialize\_SegmentList()

Initialize list of SegmentInfo

```csharp theme={null}
public void Initialize_SegmentList()
```

### Positioning\_Algorithm(ref int, ref double, double, bool, int)

Called when the position and orientation of segments calculates.

```csharp theme={null}
public SegmentPlacingInfo[] Positioning_Algorithm(ref int _NoOfSegment, ref double _Gap, double _ErrorGapPerSegment, bool _bFixedNo, int _nIteration)
```

#### Parameters

`_NoOfSegment` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The number of segment.

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

The total distance between segment and segment.

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

The average distance per segment between segment and segment.

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

`true` if \[Fixed the number of segment]; otherwise, `false`

`_nIteration` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The number of iteration.

#### Returns

[SegmentPlacingInfo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Chained.SegmentPlacingInfo.md)\[]

The list of segment placing information.
