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

# Interface IDocument

Namespace: [VM.Models.Pre](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre)\
Assembly: VM.Models.Pre.dll

This interface represents the document object of the Motion Preprocessor

```csharp theme={null}
public interface IDocument : IObject, IEventProvider, IContainer, ILinkContainer, IOwned, IHasID
```

#### Implements

[IObject](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IObject.md),
[IEventProvider](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IEventProvider.md),
[IContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IContainer.md),
[ILinkContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.ILinkContainer.md),
[IOwned](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IOwned.md),
IHasID

#### 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_),
[IDocumentExtensions.IsExistNameInDocument(IDocument, string)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IDocumentExtensions.md#VM_Models_Pre_IDocumentExtensions_IsExistNameInDocument_VM_Models_Pre_IDocument_System_String_)

## Properties

### DoingClose

```csharp theme={null}
bool DoingClose { get; }
```

#### Property Value

bool

### DoingOpen

```csharp theme={null}
bool DoingOpen { get; }
```

#### Property Value

bool

### FilePath

```csharp theme={null}
string FilePath { get; }
```

#### Property Value

string

### InitialConvertFactor

```csharp theme={null}
Unit.ConvertFactor InitialConvertFactor { get; }
```

#### Property Value

Unit.ConvertFactor

### Modified

```csharp theme={null}
bool Modified { get; set; }
```

#### Property Value

bool

### Name

```csharp theme={null}
string Name { get; set; }
```

#### Property Value

string

## Methods

### DisplayModeShape(int, double)

```csharp theme={null}
void DisplayModeShape(int modeSequence, double scale)
```

#### Parameters

`modeSequence` int

`scale` double

### FastToConvertUnitLength(bool)

```csharp theme={null}
double FastToConvertUnitLength(bool reverse)
```

#### Parameters

`reverse` bool

#### Returns

double

### FindObjectFromID(Identifier)

```csharp theme={null}
IObject FindObjectFromID(Identifier identifier)
```

#### Parameters

`identifier` Identifier

#### Returns

[IObject](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IObject.md)

### FindObjectFromKey(UIntPtr)

Find object from key.

```csharp theme={null}
IObject FindObjectFromKey(UIntPtr key)
```

#### Parameters

`key` UIntPtr

The key.

#### Returns

[IObject](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IObject.md)

Find object

### GetChildren()

```csharp theme={null}
IEnumerable<IObject> GetChildren()
```

#### Returns

IEnumerable\<[IObject](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IObject.md)>

### GetCopyOfKernelUnit()

```csharp theme={null}
Unit GetCopyOfKernelUnit()
```

#### Returns

Unit

### GetCopyOfUnit()

```csharp theme={null}
Unit GetCopyOfUnit()
```

#### Returns

Unit

### GetNextIdentifier()

```csharp theme={null}
Identifier GetNextIdentifier()
```

#### Returns

Identifier

### Save(string)

```csharp theme={null}
void Save(string path)
```

#### Parameters

`path` string

### ChildAdded

Raised when a child object is added

```csharp theme={null}
event EventHandler<Identifier> ChildAdded
```

#### Event Type

EventHandler\<Identifier>

### ChildRemoved

Raised when a child object is removed

```csharp theme={null}
event EventHandler<Identifier> ChildRemoved
```

#### Event Type

EventHandler\<Identifier>

### ChildReplaced

Raised when child is replaced by another object

```csharp theme={null}
event EventHandler<Identifier> ChildReplaced
```

#### Event Type

EventHandler\<Identifier>

### ChildReplacing

Raised when child is about to be replaced with another object

```csharp theme={null}
event EventHandler<Identifier> ChildReplacing
```

#### Event Type

EventHandler\<Identifier>

### Destroying

Raised when document is about to close

```csharp theme={null}
event EventHandler Destroying
```

#### Event Type

EventHandler

### SelectionChanged

```csharp theme={null}
event EventHandler<IEnumerable<Identifier>> SelectionChanged
```

#### Event Type

EventHandler\<IEnumerable\<Identifier>>
