Skip to main content

Motion Standalone Preprocessor C# library 2026 R1

Class PythonCodeAPI

Last update: 09.03.2026

Namespace: VM.API.Pre
Assembly: VM.API.Pre.dll

This class implements APIs for class.

public static class PythonCodeAPI

Inheritance

object ← PythonCodeAPI

Extension Methods

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

Methods

ImportPythonCode(Document, params string[])

Import python code

public static Obj[] ImportPythonCode(this Document document, params string[] additionalCodes)

Parameters

document Document

The to import python code

additionalCodes string[]

Additional pathes to python codes.

Returns

Obj[]

Array of the created entities.

Exceptions

ArgumentNullException

Raised when document or codes are null or empty.

ImportPythonCode(Document, IEnumerable<string>)

Import python code

public static Obj[] ImportPythonCode(this Document document, IEnumerable<string> codes)

Parameters

document Document

The to import python code

codes IEnumerable<string>

Pathes to python codes.

Returns

Obj[]

Array of the created entities.

Exceptions

ArgumentNullException

Raised when document or codes are null or empty.

Connect with Ansys