Skip to main content

Motion Standalone Preprocessor C# library 2024 R2

Interface IPythonCode

Last update: 16.07.2025

Namespace: VM.Models.Pre
Assembly: VM.Models.Pre.dll

This interface is to python code entity.

public interface IPythonCode : ISubEntity, IEntityBase, IObjectBase, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment

Implements

ISubEntity, IEntityBase, IObjectBase, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Properties

CodePath

Path to the code file.

string CodePath { get; set; }

Property Value

string

CodeType

The type of the python code.

CodeTypes CodeType { get; set; }

Property Value

CodeTypes

DeployLocation

The location to deploy this code during analysis.

string DeployLocation { get; set; }

Property Value

string

ImportCommand

The import command for using this code in the . It must contain '$module$' keyword.

string ImportCommand { get; set; }

Property Value

string

ImportModuleName

The module name for importing this code object

string ImportModuleName { get; }

Property Value

string

UseDeployLocation

The flag whether using the value.

bool UseDeployLocation { get; set; }

Property Value

bool

UseImportCommand

The flag whether using the value.

bool UseImportCommand { get; set; }

Property Value

bool

Methods

GetImportCommand()

Get actual import command

string GetImportCommand()

Returns

string

The import command.

Connect with Ansys