    

 ## On this page

  

 

 # Struct Obj

 Last update: 16.07.2025 

Namespace: [VM.API.Pre](VM.API.Pre.md)  
Assembly: VM.API.Pre.dll

This struct implements Obj.

```csharp
public struct Obj

```

#### Extension Methods

[GroupAPI.ApplyGroup(Obj, IEnumerable&lt;Obj&gt;)](VM.API.Pre.GroupAPI.md#VM_API_Pre_GroupAPI_ApplyGroup_VM_API_Pre_Obj_System_Collections_Generic_IEnumerable_VM_API_Pre_Obj__), [OperationAPI.ChangeEnableState(Obj, bool)](VM.API.Pre.OperationAPI.md#VM_API_Pre_OperationAPI_ChangeEnableState_VM_API_Pre_Obj_System_Boolean_), [OperationAPI.ChangeInterface(Obj, bool)](VM.API.Pre.OperationAPI.md#VM_API_Pre_OperationAPI_ChangeInterface_VM_API_Pre_Obj_System_Boolean_), [SolidBodyAPI.ChangeSolidBodyAnalysisSetting(Obj, BodyAnalysisType)](VM.API.Pre.SolidBodyAPI.md#VM_API_Pre_SolidBodyAPI_ChangeSolidBodyAnalysisSetting_VM_API_Pre_Obj_VM_Managed_DAFUL_BodyAnalysisType_), [OperationAPI.ChangeVisibleState(Obj, bool)](VM.API.Pre.OperationAPI.md#VM_API_Pre_OperationAPI_ChangeVisibleState_VM_API_Pre_Obj_System_Boolean_), [SolidBodyAPI.CreateMarker(Obj, TMatrix, string, SymmetricType)](VM.API.Pre.SolidBodyAPI.md#VM_API_Pre_SolidBodyAPI_CreateMarker_VM_API_Pre_Obj_VM_TMatrix_System_String_VM_Managed_SymmetricType_), [SolidBodyAPI.CreateMeshFile(Obj, string, string, bool, bool, bool, string, FacetParameters?)](VM.API.Pre.SolidBodyAPI.md#VM_API_Pre_SolidBodyAPI_CreateMeshFile_VM_API_Pre_Obj_System_String_System_String_System_Boolean_System_Boolean_System_Boolean_System_String_System_Nullable_VM_API_Pre_FacetParameters__), [BodyAPI.CreateMeshFileInPart(Obj, string, bool, FacetParameters?)](VM.API.Pre.BodyAPI.md#VM_API_Pre_BodyAPI_CreateMeshFileInPart_VM_API_Pre_Obj_System_String_System_Boolean_System_Nullable_VM_API_Pre_FacetParameters__), [MaterialAPI.CreateSplineForMaterial(Obj, IEnumerable&lt;SplineData.Point&gt;)](VM.API.Pre.MaterialAPI.md#VM_API_Pre_MaterialAPI_CreateSplineForMaterial_VM_API_Pre_Obj_System_Collections_Generic_IEnumerable_VM_Managed_DAFUL_SplineData_Point__), [OperationAPI.Delete(Obj)](VM.API.Pre.OperationAPI.md#VM_API_Pre_OperationAPI_Delete_VM_API_Pre_Obj_), [OperationAPI.Duplicate(Obj)](VM.API.Pre.OperationAPI.md#VM_API_Pre_OperationAPI_Duplicate_VM_API_Pre_Obj_), [OperationAPI.Flip(Obj)](VM.API.Pre.OperationAPI.md#VM_API_Pre_OperationAPI_Flip_VM_API_Pre_Obj_), [TireAPI.Reload(Obj, string)](VM.API.Pre.TireAPI.md#VM_API_Pre_TireAPI_Reload_VM_API_Pre_Obj_System_String_), [OperationAPI.SetTransparency(Obj, ExpressionValueVariable)](VM.API.Pre.OperationAPI.md#VM_API_Pre_OperationAPI_SetTransparency_VM_API_Pre_Obj_VM_Models_Pre_ExpressionValueVariable_), [SolidBodyAPI.UpdateBody(Obj)](VM.API.Pre.SolidBodyAPI.md#VM_API_Pre_SolidBodyAPI_UpdateBody_VM_API_Pre_Obj_), [OperationAPI.UpdateCADName(Obj, string)](VM.API.Pre.OperationAPI.md#VM_API_Pre_OperationAPI_UpdateCADName_VM_API_Pre_Obj_System_String_), [OperationAPI.UpdateName(Obj, string)](VM.API.Pre.OperationAPI.md#VM_API_Pre_OperationAPI_UpdateName_VM_API_Pre_Obj_System_String_), [OperationAPI.UpdateSymmetric(Obj, bool)](VM.API.Pre.OperationAPI.md#VM_API_Pre_OperationAPI_UpdateSymmetric_VM_API_Pre_Obj_System_Boolean_)

## Constructors

### Obj(string)

Initializes a new instance of the  class.

```csharp
public Obj(string name)

```

#### Parameters

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

The name of object.

### Obj(string, IContainer)

Initializes a new instance of the  class.

```csharp
public Obj(string name, IContainer container)

```

#### Parameters

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

The name of the object.

`container` IContainer

The container of the object.

#### Exceptions

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

Will be thrown if 'name' or 'container' arguments are empty.

### Obj(UIntPtr)

Initializes a new instance of the  class.

```csharp
public Obj(UIntPtr key)

```

#### Parameters

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

The key of the object.

### Obj(ConvertKey)

Initializes a new instance of the  class.

```csharp
public Obj(ObjectBase.ConvertKey key)

```

#### Parameters

`key` ObjectBase.ConvertKey

The key of the object.

## Properties

### NullObj

The null object.

```csharp
public static Obj NullObj { get; }

```

#### Property Value

[Obj](VM.API.Pre.Obj.md)

### Object

The object.

```csharp
public ObjectBase Object { get; }

```

#### Property Value

ObjectBase

## Methods

### Destroy()

Destroy object and remove from document

```csharp
public void Destroy()

```

## Operators

### implicit operator Obj(UIntPtr)

```csharp
public static implicit operator Obj(UIntPtr key)

```

#### Parameters

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

#### Returns

[Obj](VM.API.Pre.Obj.md)

### implicit operator Obj(ConvertKey)

```csharp
public static implicit operator Obj(ObjectBase.ConvertKey key)

```

#### Parameters

`key` ObjectBase.ConvertKey

#### Returns

[Obj](VM.API.Pre.Obj.md)

### implicit operator Obj(string)

```csharp
public static implicit operator Obj(string name)

```

#### Parameters

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

#### Returns

[Obj](VM.API.Pre.Obj.md)