API Reference > OdDg Classes > OdDgModel Class > OdDgModel Methods > OdDgModel::enableGlobalOriginUsage Method
OdDgModel::enableGlobalOriginUsage Method
Syntax
C++
virtual void enableGlobalOriginUsage(bool bEnable = true);
Parameters 
Description 
bool bEnable = true 
[in] On or off global origin support mode. 

The function on/off global origin support mode. 

 

If bEnable is true, the function call transformBy(...) for the model to global origin without undo recording and set flag to recalcualte elements when global origin is changed and restore element positions before of write to file. If bEnable is false, the function call transformBy(...) for the model disable global origin offset and reset flag of global origin support.

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