VCOM:VectorWorks:Scripting:IPythonWrapper
Description
namespace VectorWorks::Scripting
This interface is a representation of a python run-time. You can use this interface to create a run-time, set it up, and execute scripts.
Note that executing scripts consecutively in an run-time environment will let all defined variable remain after each script execution.
Interface
...put the class definition, including the UUID, here...
Members
Remarks
There is predefined type for smart VCOM pointer VCOMPtr to IPythonWrapper interface:
typedef VCOMPtr<IPythonWrapper> IPythonWrapperPtr;
Use the following interface to capture the logging from the script execution:
class DYNAMIC_ATTRIBUTE IPythonLogger { public: virtual ~IPythonLogger() {} virtual void VCOM_CALLTYPE LogStdOut(const char* msg) = 0; virtual void VCOM_CALLTYPE LogStdErr(const char* msg) = 0; };
Version
Available from: Vectorworks 2014
See Also
[[VCOM:VCOMPtr]]