API Reference > Functions > odrxCreateObject Function
odrxCreateObject Function
Syntax
C++
FIRSTDLL_EXPORT OdRxObjectPtr odrxCreateObject(const OdString& sClassName);

RxObject.h

Parameters 
Description 
const OdString& sClassName 
[in] Custom class name as a string. 

This external function creates a new instance of the class specified by the argument as a string and returns a /non-typified smart pointer/ to it. 

 

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