XSIUtils.DataRepository

Description

Returns a DataRepository object.

C# Syntax

// get accessor
DataRepository rtn = XSIUtils.DataRepository;

Examples

VBScript Example

' Get the DataRepository object
Set oDatabase = xsiutils.DataRepository
' Use the DataRepository object to count the number of 3D objects in the scene
set oRoot = Application.ActiveProject.ActiveScene.Root
set oGrid = oRoot.AddGeometry("Grid","MeshSurface")
Application.LogMessage oDatabase.GetCount(oGrid)