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

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 is to python code entity.

```csharp theme={null}
public interface IPythonCode : ISubEntity, IEntityBase, IObjectBase, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment
```

#### Implements

[ISubEntity](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.ISubEntity.md),
[IEntityBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IEntityBase.md),
[IObjectBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IObjectBase.md),
[IObject](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IObject.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,
[IEventProvider](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IEventProvider.md),
[IHasKeyObject](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IHasKeyObject.md),
IHasName,
IEnabled,
IHasComment

#### 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_)

## Properties

### CodePath

Path to the code file.

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

#### Property Value

string

### CodeType

The type of the python code.

```csharp theme={null}
CodeTypes CodeType { get; set; }
```

#### Property Value

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

### DeployLocation

The location to deploy this code during analysis.

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

#### Property Value

string

### ImportCommand

The import command for using this code in the [IExpression](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.IExpression.md).
It must contain '\$module\$' keyword.

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

#### Property Value

string

### ImportModuleName

The module name for importing this code object

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

#### Property Value

string

### UseDeployLocation

The flag whether using the DeployLocation value.

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

#### Property Value

bool

### UseImportCommand

The flag whether using the ImportCommand value.

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

#### Property Value

bool

## Methods

### GetImportCommand()

Get actual import command

```csharp theme={null}
string GetImportCommand()
```

#### Returns

string

The import command.
