API Reference > OdDAI Namespace > Classes > Model Class
Model Class
OdDAI__ModelOdDAI__ModelOdDAI__ModelOdDAI__Model
Syntax
C++
class Model : public SessionInstance;

daiModel.h

A class that implements functionality for working with models.

 
Name 
Description 
 
Retrieves the current value of an attribute specified by its name.  
 
Retrieves the current value of an attribute specified by its name in case insencitive mode.  
 
Retrieves the type of the sdai object.  
 
Retrieves the current Gs node object of the sdai object.  
 
id 
Retrieves the database object identifier of the sdai object.  
 
This is the overview for the isInstanceOf method overload. 
 
This is the overview for the isKindOf method overload. 
 
Retrieves whether the sdai object is a persistent one.  
 
Retrieves the model that contains the sdai object.  
 
Sets a new Gs node cache for the sdai object.  
 
This is the overview for the testAttr method overload. 
 
Retrieves whether the attribute value is set or is unset in case insencitive mode.  
OdSDAIInstance Class
 
Name 
Description 
 
Retrieves the current value of an attribute specified by its name.  
 
Retrieves the type of the SDAI instance.  
 
This is the overview for the isInstanceOf method overload. 
 
This is the overview for the isKindOf method overload. 
 
Retrieves the model that contains the SDAI instance.  
 
This is the overview for the testAttr method overload. 
Model Class
 
Name 
Description 
 
Appends a newly created entity instance to the model.  
 
This is the overview for the closeModel method overload. 
 
This is the overview for the createEntityInstance method overload. 
 
Deletes a specified entity instance from the model.  
 
Retrieves an entity definition by its name.  
 
This is the overview for the getEntityExtent method overload. 
 
Searches the entity in the model by its handle.  
 
Retrieves whether the SDAI model is currently being loaded from a file.  
 
Retrieves whether the model is being written to a file.  
 
This is the overview for the initialize method overload. 
 
Inserts a newly created entity instance to the model.  
 
mode 
Retrieves the current access mode for the SDAI model.  
 
name 
Retrieves the name of the model.  
 
Creates an iterator to get sequential access to all entities of the model.  
 
Changes the access mode for the SDAI model from the read-only to the read-write. 
 
Assigns a new name to the specified SDAI model.  
 
Retrieves a repository that contains the model.  
 
Retrieves the underlying schema definition of the model.  
 
Retrieves the name of the model's underlying schema.  
 
This is the overview for the unloadEntityExtent method overload. 
Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.