Home Search

DriveWorks Pro 22
PreviewGetDocumentScene

Send Feedback

PreviewGetDocumentScene

This function returns a table containing Node and Entity information for the current 3D Preview Document being displayed in the given 3D Preview Control.

Syntax

PreviewGetDocumentScene( [Preview Control Name])

Where:

Preview Control Name is the name of the 3D Preview Control from which to get the scene information. The 3D Preview Control name must be entered as a string (within quotes " ") and not include any suffix (Return, Enabled, etc.).

Examples

RuleResult
PreviewGetDocumentScene("PreviewControl1")Will return a table array as below:

{"Name","Address","Parent","Type";"Root","Root","","Node";"Transform","Root\Entities\Transform","Root","Entity";"Decorative-1","Root\Decorative-1","Root","Node";"Transform","Root\Decorative-1\Entities\Transform","Decorative-1","Entity";"Model","Root\Decorative-1\Entities\Model","Decorative-1","Entity";"ModelA","Root\ModelA","Root","Node";"Transform","Root\ModelA\Entities\Transform","ModelA","Entity"}