> ## 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/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 ←
[OperationAPI](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.API.Pre.OperationAPI.md)

#### 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_)

## 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/lib/VM.API.Pre.Obj.md)

`isEnable` bool

### 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\<[Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.API.Pre.Obj.md)>

`isEnable` bool

### 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/lib/VM.API.Pre.Obj.md)

`isInterface` bool

### 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/lib/VM.API.Pre.Obj.md)

`isVisible` bool

### 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\<[Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.API.Pre.Obj.md)>

`isVisible` bool

### 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/lib/VM.API.Pre.Obj.md)

The entity to be deleted.

#### Exceptions

ArgumentNullException

Will be thrown if 'entity' arguments are empty.

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/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\<[Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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/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\<[Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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/lib/VM.API.Pre.Obj.md)

`transparency` [ExpressionValueVariable](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Pre/Data/VM.Models.Pre/Models/ExpressionValueVariable.cs)

### 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/lib/VM.API.Pre.Obj.md)

`strName` 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/lib/VM.API.Pre.Obj.md)

`strName` 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/lib/VM.API.Pre.Obj.md)

`symmetric` bool
