Class ScriptingSetup
Inheritance
System.Object
System.MarshalByRefObject
SMT.MastaAPIUtility.MarshalByRefObjectPermanent
ScriptingSetup
Inherited Members
APIBase.callPartialMethod<T>(String, (T1, T2)<Type, Object>, (T1, T2)<Type, Object>, (T1, T2)<Type, Object>, T)
SMT.MastaAPIUtility.MarshalByRefObjectPermanent.InitializeLifetimeService()
Assembly: SMT.MastaAPI.13.0.dll
Syntax
public class ScriptingSetup : PerMachineSettings, IEquatable<APIBase>
Properties
DisplayPythonPropertyHints
Declaration
public bool DisplayPythonPropertyHints { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ImageHeight
Declaration
public int ImageHeight { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
ImageWidth
Declaration
public int ImageWidth { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
LoadScriptedPropertiesWhenOpeningMASTA
If loaded when opening MASTA clicking "Recompile" in the scripting tab is not required. However compiling the properties can take a long time.
Declaration
public bool LoadScriptedPropertiesWhenOpeningMASTA { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
MastapyVersion
Declaration
public string MastapyVersion { get; }
Property Value
Type |
Description |
System.String |
|
PythonExePath
Declaration
public string PythonExePath { get; }
Property Value
Type |
Description |
System.String |
|
PythonHomeDirectory
Declaration
public string PythonHomeDirectory { get; }
Property Value
Type |
Description |
System.String |
|
PythonInstallDirectory
Declaration
public string PythonInstallDirectory { get; set; }
Property Value
Type |
Description |
System.String |
|
PythonRemoteHost
Declaration
public string PythonRemoteHost { get; set; }
Property Value
Type |
Description |
System.String |
|
PythonRemotePort
Declaration
public int PythonRemotePort { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
PythonRemoteTimeoutS
Declaration
public int PythonRemoteTimeoutS { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
RunScriptsInSeparateThreads
Running scripts in separate threads allows pausing / resuming the MASTA User Interface. If scripts create their own User Interfaces then errors can occur accessing controls on different threads.
Declaration
public bool RunScriptsInSeparateThreads { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
UseDefaultNETSolutionDirectory
Declaration
public bool UseDefaultNETSolutionDirectory { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
UseDefaultPluginDirectory
Declaration
public bool UseDefaultPluginDirectory { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
UseDefaultPythonScriptsDirectory
Declaration
public bool UseDefaultPythonScriptsDirectory { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
UseDefaultVisualStudioCodeDirectory
Declaration
public bool UseDefaultVisualStudioCodeDirectory { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
VisualStudioCodeDirectory
Visual Studio Code is required for Python remote debugging. By default we try and find Visual Studio Code on the PATH environment variable. Enter an absolute path to the Visual Studio Code directory here if it cannot be found.
Declaration
public string VisualStudioCodeDirectory { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
AddExistingNETSolution()
Declaration
public void AddExistingNETSolution()
RestoreAPIPackages()
Extracts the API packages (including legacy versions) from the SMT NuGet server to the executable directory. Any existing API DLLs will be ignored.
Declaration
public void RestoreAPIPackages()
SelectNETSolutionDirectory()
Declaration
public void SelectNETSolutionDirectory()
SelectPluginDirectory()
Declaration
public void SelectPluginDirectory()
SelectPythonInstallDirectory()
Declaration
public void SelectPythonInstallDirectory()
SelectPythonScriptsDirectory()
Declaration
public void SelectPythonScriptsDirectory()
SelectVisualStudioCodeDirectory()
Declaration
public void SelectVisualStudioCodeDirectory()
Implements
System.IEquatable<T>
Extension Methods