2019-03-0903:51 AM - last edited on 2022-10-0404:35 PM by Daniel Kassai
2019-03-0903:51 AM
Just completed a snippet which changes the Default Value of some Definitions.
I used the function ACAPI_Property_ChangePropertyDefinition, however, that function failed. i seems it has to be wrapped in a undoable callback. ACAPI_callUndoableCommand.
As i look at the other examples in Property_Test none of the other functions need this call back, even to change the definition name.
Wondering why this particular restriction is necessary and is there any work around if I don't need to undo?
I took a quick look and it appeared that all the property tests are called from within APIMenuCommandProc_Main, which embeds all these tests in ACAPI_CallUndoableCommand
Ralph Wessel BArch Software Engineer Speckle Systems
I took a quick look and it appeared that all the property tests are called from within APIMenuCommandProc_Main, which embeds all these tests in ACAPI_CallUndoableCommand
Ralph Wessel BArch Software Engineer Speckle Systems