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

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 document.

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

#### Inheritance

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

### CreateNewPartDocumentImpl\<T>(string, string, Unit, double, LengthUnitType, string, string)

Create [PartDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.PartDocument.md).

```csharp theme={null}
[NotNullOrEmpty(new string[] { "newPartFilePath" })]
public static T CreateNewPartDocumentImpl<T>(string newPartFilePath, string documentName, Unit unit, double iconSize, LengthUnitType unused, string extension, string documentType) where T : PartDocument
```

#### Parameters

`newPartFilePath` string

The file path of new part.

`documentName` string

The name of document.

`unit` Unit

The unit information.

`iconSize` double

The size of icon.

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

The length unit of kernel.

`extension` string

The extension.

`documentType` string

The document type.

#### Returns

T

The new [SubSystemDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.SubSystemDocument.md) object that is created by this API.

#### Type Parameters

`T`

The document type

#### Exceptions

ArgumentNullException

Will be thrown if 'newPartFilePath' argument is null.

### CreateNewSubsystemDocumentCore\<T>(string, DocCreateInfo, string, string)

Create [Document](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Document.md).

```csharp theme={null}
[NotNullOrEmpty(new string[] { "newSubsystemFilePath" })]
public static T CreateNewSubsystemDocumentCore<T>(string newSubsystemFilePath, DocCreateInfo info, string extension, string documentType) where T : DocumentAnalysis
```

#### Parameters

`newSubsystemFilePath` string

The file path of new subsystem.

`info` DocCreateInfo

The information of document.

`extension` string

The extension.

`documentType` string

The document type.

#### Returns

T

The new [Document](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Document.md) object that is created by this API.

#### Type Parameters

`T`

The document type

#### Exceptions

ArgumentNullException

Will be thrown if 'newSubsystemFilePath' argument is null.

### CreateNewSubsystemDocumentImpl\<T>(string, string, Vector, Unit, double, bool, Plane, bool, LengthUnitType, string, string)

Create [SubSystemDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.SubSystemDocument.md).

```csharp theme={null}
[NotNullOrEmpty(new string[] { "newSubsystemFilePath" })]
public static T CreateNewSubsystemDocumentImpl<T>(string newSubsystemFilePath, string documentName, Vector gravity, Unit unit, double iconSize, bool advancedMode, Plane symmetricPlane, bool useSymmetric, LengthUnitType unused, string extension, string documentType) where T : SubSystemDocument
```

#### Parameters

`newSubsystemFilePath` string

The file path of new subsystem.

`documentName` string

The name of document.

`gravity` Vector

The gravity value.

`unit` Unit

The unit information.

`iconSize` double

The size of icon.

`advancedMode` bool

The flag whether using advanced mode.

`symmetricPlane` Plane

The symetric plane.

`useSymmetric` bool

The flag whether using symmetric.

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

This parameter is unused.

`extension` string

The extension.

`documentType` string

The document type.

#### Returns

T

The new [SubSystemDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.SubSystemDocument.md) object that is created by this API.

#### Type Parameters

`T`

The document type

#### Exceptions

ArgumentNullException

Will be thrown if 'newSubsystemFilePath' argument is null.

### CreateNewSubsystemFromTemplateDocumentImpl\<T>(string, string, string, string)

Create [SubSystemDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.SubSystemDocument.md).

```csharp theme={null}
[NotNullOrEmpty(new string[] { "newSubsystemFromTemplateFilePath" })]
[ExistFile(new string[] { "existedSubsystemTemplateFilePath" })]
public static T CreateNewSubsystemFromTemplateDocumentImpl<T>(string newSubsystemFromTemplateFilePath, string existedSubsystemTemplateFilePath, string extension, string documentType) where T : SubSystemDocument
```

#### Parameters

`newSubsystemFromTemplateFilePath` string

The file path of new subsystem from template file path.

`existedSubsystemTemplateFilePath` string

The file path of existed subsystem template file path.

`extension` string

The extension.

`documentType` string

The document type.

#### Returns

T

The new [SubSystemDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.SubSystemDocument.md) object that is created by this API.

#### Type Parameters

`T`

The document type

#### Exceptions

ArgumentNullException

Will be thrown if 'newSubsystemFromTemplateFilePath' argument is null.

FileNotFoundException

Will be thrown if 'existedSubsystemTemplateFilePath' does not exist.
