| GSModeler Engine Version: 9.0 | |||||||||||
ProcessControl class
Public methods
Constructors Detailed descriptionThis object can be used to communicate with ArchiCAD's process control system.
The MakePicture method of the renderer gets an instance of this class as a parameter.
The add-on can set the process state (process name, progress bar), write report string and get information about the cancel button via this parameter. // processControl: The process control object. // model: The model. char renderingStr [256]; GSResModule actResModule = RSSetActiveModule (GSModeler::GetAddOnResourceModule ()); // Set the add-on as active resource modul. RSGetIndString (renderingStr, resourceTableID, stringIndex); // Get the process string. RSSetActiveModule (actResModule); // Restore the original resource module. processControl.SetProcessName (renderingStr); // Set the process name in the process window. for (long iElement = 1; iElement <= model.GetElementNum (); iElement++) { // Element processing. processControl.SetProcessValue (static_cast<double> (iElement) / model.GetElementNum ()); // Set the process value. if (processControl.Canceled ()) break; // Exit if the user cancelled the rendering. }
See Also |
|||||||||||
| |