API Reference > Module Database Wrappers > AECCVBaseDatabase Class > AECCVBaseDatabase Methods > AECCVBaseDatabase::GetRootNode Method
AECCVBaseDatabase::GetRootNode Method
Syntax
C++
OdDbObjectId GetRootNode(bool createIfNotExists = true) const;
Parameters 
Description 
bool createIfNotExists = true 
[in] True to create the root node if it does not exist. 

Object ID of the root node.

Gets the root node. 

 

If bit 2 of the VerticalApplicationsMode regvar is 0, returns kNull. If the root node is absent and createIfNotExists == false, returns kNull. If the root node is absent and createIfNotExists == true, creates the root node and returns its object ID.

Copyright © 2002 – 2020. Open Design Alliance. All rights reserved.