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

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

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

#### Inheritance

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

#### Extension Methods

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

## Constructors

### TopologyUtil()

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

## Methods

### GetTopologyType(Body, UIntPtr)

```csharp theme={null}
public static IBody.enToplogyType GetTopologyType(Body body, UIntPtr ptrEntityKey)
```

#### Parameters

`body` [Body](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Body.md)

`ptrEntityKey` [UIntPtr](https://learn.microsoft.com/dotnet/api/system.uintptr)

#### Returns

[IBody](VM.CAD.IBody.md).[enToplogyType](VM.CAD.IBody.enToplogyType.md)

### GetVMPID(Body, UIntPtr)

```csharp theme={null}
public static int GetVMPID(Body body, UIntPtr ptrEntityKey)
```

#### Parameters

`body` [Body](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Body.md)

`ptrEntityKey` [UIntPtr](https://learn.microsoft.com/dotnet/api/system.uintptr)

#### Returns

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