Platforms to show: All Mac Windows Linux Cross-Platform
Back to PythonMBS class.
PythonMBS.AddCustomFunction(FunctionName as String)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Python | MBS Python Plugin | 24.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
You can define multiple functions all with different names.
Function names are case sensitive.
See also:
Some examples using this method:
PythonMBS.AddCustomFunction(FunctionName as String, theDelegate as CustomFunctionCalledMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Python | MBS Python Plugin | 24.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
PythonMBS.AddSysPath(Path as String) New in 25.1
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Python | MBS Python Plugin | 25.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This allows you to add the path to the current virtual environment.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Python | MBS Python Plugin | 24.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Python | MBS Python Plugin | 24.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
PythonMBS.DeleteValue(Key as String)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Python | MBS Python Plugin | 24.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
PythonMBS.Evaluate(Expression as String) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Python | MBS Python Plugin | 24.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Pass an expression to evaluate with Python.
Returns the result of the expression.
May raise a PythonExceptionMBS exception.
PythonMBS.HasValue(Key as String) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Python | MBS Python Plugin | 24.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true if variable is set.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Python | MBS Python Plugin | 24.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This includes the registered custom functions.
PythonMBS.Run(Script as String) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Python | MBS Python Plugin | 24.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Pass the script text to run.
Returns the result of the script.
PythonMBS.RunFile(File as FolderItem) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Python | MBS Python Plugin | 24.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns the result of the script.
PythonMBS.Value(Key as String) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Python | MBS Python Plugin | 24.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Data types are converted as far as possible.
(Read and Write computed property)
The items on this page are in the following plugins: MBS Python Plugin.
