API Reference > OdDAI Namespace > Classes > Model Class > Model Methods > Model::appendEntityInstance Method
Model::appendEntityInstance Method
Syntax
C++
OdDAIObjectId appendEntityInstance(ApplicationInstancePtr pInst);
Parameters 
Description 
ApplicationInstancePtr pInst 
[in] A smart pointer to the entity instance to be appended.  

An OdDAI object identifier of the appended entity instance.

Appends a newly created entity instance to the model.

If the specified entity has been already appended to the model, the method returns the existing entity's identifier; if the specified entity belongs to another model, the method returns a null identifier (the isNull() method of the identifier object returns true).

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.