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

### CreateNewPropertyDocumentImpl\<T>(string, string, Unit, LengthUnitType, string, string)

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

```csharp theme={null}
[NotNullOrEmpty(new string[] { "newPropertyFilePath" })]
public static T CreateNewPropertyDocumentImpl<T>(string newPropertyFilePath, string documentName, Unit unit, LengthUnitType kernelLengthUnit, string extension, string documentType) where T : PropertyDocumentBase
```

#### Parameters

`newPropertyFilePath` string

The file path of new property document.

`documentName` string

The name of document.

`unit` Unit

The unit information.

`kernelLengthUnit` LengthUnitType

The length unit of kernel.

`extension` string

The extension.

`documentType` string

The document type.

#### Returns

T

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

#### Type Parameters

`T`

The document type

#### Exceptions

ArgumentNullException

Will be thrown if 'newPropertyFilePath' argument is null.

### CreateNewSubsystemFromTemplateDocumentImpl\<T>(string, string, MinorRole, 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, MinorRole minorRole, 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.

`minorRole` MinorRole

The minor role type.

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