    

 ## On this page

  

 

 # Class GroupAPI

 Last update: 09.03.2026 

<a id="VM_API_Pre_GroupAPI"></a>

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

This class implements APIs for Group.

```csharp
public static class GroupAPI

```

#### Inheritance

object ← [GroupAPI](VM.API.Pre.GroupAPI.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Methods

### <a id="VM_API_Pre_GroupAPI_ApplyGroup_VM_API_Pre_Obj_System_Collections_Generic_IEnumerable_VM_API_Pre_Obj__"></a> ApplyGroup(Obj, IEnumerable&lt;Obj&gt;)

Apply a  update.

```csharp
[NotNull(new string[] { "group" })]
public static void ApplyGroup(this Obj group, IEnumerable<Obj> objs)

```

#### Parameters

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

The target  to apply update.

`objs` IEnumerable&lt;[Obj](VM.API.Pre.Obj.md)&gt;

The collection of objects.

#### Exceptions

ArgumentNullException

Will be thrown if 'group' is null.

ArgumentException

Will be thrown if the type of 'group' is not .

### <a id="VM_API_Pre_GroupAPI_CreateGroup_VM_Managed_DAFUL_SubSystemDocument_System_Collections_Generic_IEnumerable_VM_API_Pre_Obj__"></a> CreateGroup(SubSystemDocument, IEnumerable&lt;Obj&gt;)

Create

```csharp
[NotNull(new string[] { "subSystemDocument", "objs" })]
public static Obj CreateGroup(this SubSystemDocument subSystemDocument, IEnumerable<Obj> objs)

```

#### Parameters

`subSystemDocument` [SubSystemDocument](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDFBase/SubSystemDocument.cs)

The  to create a group.

`objs` IEnumerable&lt;[Obj](VM.API.Pre.Obj.md)&gt;

The bodies of a group.

#### Returns

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

The new  object that is created by this API.

#### Exceptions

ArgumentNullException

Will be thrown if 'subSystemDocument', 'objs' is null.

ArgumentException

Will be thrown if the type of 'objs' is not .