Home
Reply
Visitor
mrmonday
Posts: 4

about API_BEGIN and API_NOP_BEGIN

what would happen if API_BEGIN is wrapped in API_NOP_BEGIN?

will the operation between API_BEGIN and API_END be kept in bulletin records?

Spatial Employee
asdf
Posts: 93

Re: about API_BEGIN and API_NOP_BEGIN

[ Edited ]

If you have an API_BEGIN/AP_END block nested inside a API_NOP_BEGIN/API_NOP_END block, any changes to the model from the code in the inner block will be rolled at the end of the nop block.

 

Per the documentation, http://doc.spatial.com/index.php/API_Macros#API_NOP_BEGIN_and_API_NOP_END_Macros, any changes to the model wrapped in an API_NOP_BEGIN/API_NOP_END block are rolled at the end of the block.  This will happen even if you have another API_BEGIN/API_END block nested inside the NOP block.  The purpose of the NOP block is to be able to do things to the model and erase the effect afterwards so that there is no change.

 

cheers.

 

Eric Zenk

Visitor
mrmonday
Posts: 4

Re: about API_BEGIN and API_NOP_BEGIN

 thank you.