Skip to main content

Motion Standalone Preprocessor C# library 2026 R1

Class PythonFunctionIntellisenseService

Last update: 09.03.2026

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

This class represents the service for supporting intellisense of user defined python code

public static class PythonFunctionIntellisenseService

Inheritance

object ← PythonFunctionIntellisenseService

Extension Methods

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

Fields

OnUpdatePythonModule

Raised when user defined python module is updated

public static EventHandler OnUpdatePythonModule

Field Value

EventHandler

Methods

GetImportStrings(IDocument, bool)

Gets python herder string to import user defined puthon codes.

public static IEnumerable<string> GetImportStrings(IDocument document, bool includeAddToPathCommand = false)

Parameters

document IDocument

The of user defined python modules.

includeAddToPathCommand bool

if true, include command to add path of module directory.

Returns

IEnumerable<string>

The header strings.

GetModulePath(IDocument)

Gets the path to the reorganized user defined python module

public static string GetModulePath(IDocument document)

Parameters

document IDocument

The of user defined python modules.

Returns

string

The path to the reorganized user defined python module.

IsRegistered(IDocument)

public static bool IsRegistered(IDocument document)

Parameters

document IDocument

Returns

bool

Register(IDocument)

Register the .

public static void Register(IDocument document)

Parameters

document IDocument

the to register.

Exceptions

ArgumentNullException

Raised when document is null.

Connect with Ansys