2017-05-3104:57 PM - last edited on 2022-12-0602:06 PM by Daniel Kassai
2017-05-3104:57 PM
Hello,
I'm trying to create a new property group and I get this errorcode -2130312312. I checked the code and it corresponds to this error - "The passed identifier is not subject to the operation."
Hi,
Which version of ARCHICAD are you using? I think the problem will be that this function must be undoable and it wasn’t called from an undoable scope. Please check it in your code!
Best, Regina
Thanks. Have you checked the undoable scope in your addin? In ARCHICAD 20 this error code is returned if there is no undoable scope and you call a function which needs undoable scope. You can check it in the Property_Test example.
Regina, I've resolved this issue by adding ACAPI_CallUndoableCommand() in my MenuCommandHandler(), so this thread can be closed now. Thanks very much for the help !!!!