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

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

This class implements APIs for operation class.

```csharp theme={null}
public static class OperationAPI
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[OperationAPI](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.OperationAPI.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_)

## Methods

### ChangeEnableState(Obj, bool)

```csharp theme={null}
[NotNullObj(new string[] { "enableObj" })]
public static void ChangeEnableState(this Obj enableObj, bool isEnable = true)
```

#### Parameters

`enableObj` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)

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

### ChangeEnableState(IEnumerable\<Obj>, bool)

```csharp theme={null}
[NotNull(new string[] { "enableObjs" })]
public static void ChangeEnableState(this IEnumerable<Obj> enableObjs, bool isEnable = true)
```

#### Parameters

`enableObjs` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)>

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

### ChangeInterface(Obj, bool)

```csharp theme={null}
[NotNullObj(new string[] { "interfaceObj" })]
public static void ChangeInterface(this Obj interfaceObj, bool isInterface = false)
```

#### Parameters

`interfaceObj` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)

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

### ChangeVisibleState(Obj, bool)

```csharp theme={null}
[NotNullObj(new string[] { "visibleObj" })]
public static void ChangeVisibleState(this Obj visibleObj, bool isVisible = true)
```

#### Parameters

`visibleObj` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)

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

### ChangeVisibleState(IEnumerable\<Obj>, bool)

```csharp theme={null}
[NotNull(new string[] { "visibleObjs" })]
public static void ChangeVisibleState(this IEnumerable<Obj> visibleObjs, bool isVisible = true)
```

#### Parameters

`visibleObjs` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)>

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

### Delete(Obj)

Delete the entity.

```csharp theme={null}
[NotNullObj(new string[] { "entity" })]
public static void Delete(this Obj entity)
```

#### Parameters

`entity` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)

The entity to be deleted.

#### Exceptions

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

Will be thrown if 'entity' arguments are empty.

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

Will be thrown if document of 'entity' arguments are empty.

### Duplicate(Obj)

```csharp theme={null}
[NotNullObj(new string[] { "entity" })]
public static void Duplicate(this Obj entity)
```

#### Parameters

`entity` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)

### Duplicate(IEnumerable\<Obj>)

```csharp theme={null}
[NotNull(new string[] { "entities" })]
public static void Duplicate(this IEnumerable<Obj> entities)
```

#### Parameters

`entities` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)>

### Flip(Obj)

```csharp theme={null}
[NotNullObj(new string[] { "entity" })]
public static void Flip(this Obj entity)
```

#### Parameters

`entity` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)

### Flip(IEnumerable\<Obj>)

```csharp theme={null}
[NotNull(new string[] { "entities" })]
public static void Flip(this IEnumerable<Obj> entities)
```

#### Parameters

`entities` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)>

### SetTransparency(Obj, ExpressionValueVariable)

```csharp theme={null}
[NotNullObj(new string[] { "body" })]
public static void SetTransparency(this Obj body, ExpressionValueVariable transparency)
```

#### Parameters

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

`transparency` ExpressionValueVariable

### UpdateCADName(Obj, string)

```csharp theme={null}
[NotNull(new string[] { "cadBody" })]
[NotNullOrEmpty(new string[] { "strName" })]
public static void UpdateCADName(this Obj cadBody, string strName)
```

#### Parameters

`cadBody` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)

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

### UpdateName(Obj, string)

```csharp theme={null}
[NotNull(new string[] { "nameObj" })]
[NotNullOrEmpty(new string[] { "strName" })]
public static void UpdateName(this Obj nameObj, string strName)
```

#### Parameters

`nameObj` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)

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

### UpdateSymmetric(Obj, bool)

```csharp theme={null}
[NotNullObj(new string[] { "symMgr" })]
public static void UpdateSymmetric(this Obj symMgr, bool symmetric = true)
```

#### Parameters

`symMgr` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)

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