CreateAction

Creates a presentation action. Presentations are created from a combination of actions and steps. Actions are the specific activities that the presentation tool is to perform when the presentation is played, such as 'Record Route' or 'Show Object'. While steps are like "chapter headings" that group together related actions and provide increased flexibility for displaying a presentation by enabling you to quickly jump from one step to another in the presentation.

 

JavaScript

 

CreateAction(

       ActionData)

 

C#

 

IPresentationItem80 CreateAction (

       string ActionData)

 

C++

 

HRESULT CreateAction (

       [in] BSTR ActionData,

       {out, retval] IPresentationItem80** pIPresentationItem80)

Parameters

ActionData

The section of the PresentationJSON that describes the presentation action being created. For example:

 {

                        "description": "Hide CellTower ©Airmap",

                        "actionType": "Hide",

                        "options": {

                            "pathToGroup": "3D City Models\\Close-Range Projects\\CellTower ©Airmap"

                        }

                    }

OR

{

                        "description": "Fly to: [-81.4987, 41.0084]",

                        "actionType": "FlyTo",

                        "options": {

                            "poi": {

                                "x": -81.498679,

                                "y": 41.008367,

                                "altitude": 302.502045,

                                "viewerYaw": 382.596884,

                                "viewerPitch": -32.975953,

                                "distance": 6809.840545,

                                "isRelative": false

                            }

                        }

                    }

SeePresentationJSONSchema” in this chapter for more information.

Return Value

pIPresentationItem80

An IPresentationItem80 representing the presentation action that was created.  

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.