API Reference > OdDAI Namespace > Classes > Repository Class > Repository Methods > createModel Method > Repository::createModel Method (OdAnsiString &, SchemaPtr)
Repository::createModel Method (OdAnsiString &, SchemaPtr)
Syntax
C++
ModelPtr createModel(const OdAnsiString & name, const SchemaPtr schema);
Parameters 
Description 
const OdAnsiString & name 
[in] name of created model  
const SchemaPtr schema 
[in] schema of created model  

ModelPtr

Create a new model with name and schema in the repository.

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