cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
poco2013
Mentor

definition Default Value

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?
Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27
1 Solution

Accepted Solutions
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
Central Innovation

Go to post

2 Replies 2
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
Central Innovation
poco2013
Mentor
Hey Ralph:

Thanks for the heads up. I would of never thought to look there.

Learned something today --- Thanks
Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!