    

 ## On this page

  

 

 # Class SubsystemAPI

 Last update: 09.03.2026 

<a id="VM_API_Pre_SubsystemAPI"></a>

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

This class implements APIs for subsystem.

```csharp
public static class SubsystemAPI

```

#### Inheritance

object ← [SubsystemAPI](VM.API.Pre.SubsystemAPI.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_SubsystemAPI_CreateSubSystem_VM_Managed_Document_System_String_VM_Managed_TMatrix_System_String_"></a> CreateSubSystem(Document, string, TMatrix, string)

Create .

```csharp
[NotNull(new string[] { "document", "transform" })]
[ExistFile(new string[] { "subsystemFilePath" })]
public static Obj CreateSubSystem(this Document document, string subsystemFilePath, TMatrix transform, string subsystemName = "")

```

#### Parameters

`document` Document

The document to create the subsystem.

`subsystemFilePath` string

The file path of imported subsystem document

`transform` TMatrix

The transformation matrix for a subsystem.

`subsystemName` string

The name of the subsystem. If empty, default name starts with 'SubSystem\_' will be generated and used.

#### Returns

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

The new  object that is created by this API.

#### Exceptions

ArgumentNullException

Will be thrown if 'document' or 'subsystemFilePath' arguments are empty.

FileNotFoundException

Will be thrown if 'subsystemFilePath' does not exist.

### <a id="VM_API_Pre_SubsystemAPI_CreateSubSystem_VM_Managed_Document_System_String_"></a> CreateSubSystem(Document, string)

Create .

```csharp
public static Obj CreateSubSystem(this Document document, string subsystemFilePath)

```

#### Parameters

`document` Document

The document to create the subsystem.

`subsystemFilePath` string

The file path of imported subsystem document

#### Returns

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

The new  object that is created by this API.