Home > Working with SGWorld > Creator (ICreator6) > CreatePresentation
The CreatePresentation method enables you to create an empty presentation. You can then add the steps to the presentation and set caption and playback properties using the IPresentation6 interface.
JavaScript |
|
CreatePresentation( GroupID , Description ) |
C# |
|
IPresentation6 CreatePresentation( int GroupID = 0, string Description = "") |
C++ |
|
|
Parameters
GroupID
The Project Tree group in which the presentation is created. If it is set to zero, the presentation is created under the root. You can obtain the GroupID by one of the following methods:
§ Create the group using IProjectTree6.CreateGroup.
§ Find the group, if you know the name, using IProjectTree6.FindItem.
§ Traverse the Tree using IProjectTree6 methods such as GetNextItem(), until you come to the desired GroupID.
Description
The name of the presentation as it appears in the Project Tree. If an empty string is passed into this parameter, TerraExplorer assigns it a unique name.
Return Value
pIPresentation6
An IPresentation6, representing the newly created presentation.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.