I am calling sAIDocumentList->New from a Cocoa plug-in, compiled with the latest CC 2014 SDK... this is on OS X 10.9 and 10.10.
This API works fine in CC 2014, and it also works fine in the same plug-in for CC (compiled with the CC SDK). Since there's no SDK for CC 2015 yet, I assume we have to use the latest CC 2014 SDK to compile our plug-ins... but this does not work as expected.
When I call that API in CC 2015, it returns the 'CANT' error. I'd never seen this before -- I've tried changing the parameters to sAIDocumentList->New in several ways, but I always get the same error. It seems the plug-in simply cannot create a new document.
This API has been working fine for me since CC -- any ideas as to what might've changed in CC 2015...?
I have had some problems getting plugins to install in 2015:
Once I installed them by copying the plugin manually, every thing seemed to work but I don't use sAIDocumentList->New. If you are not calling this as the result of an AI message, have you set the app context?
I've found out that sAIDocumentList->New in CC 2015 accepts either a valid preset, or a valid parameter block -- apparently not both. At any rate, the validity of the parameter block determines whether the API will succeed or not.
This is in contrast with prior Illustrator versions, including CC 2014 -- previously, the API would accept both valid presets and parameter blocks. Not sure how/why this was changed, though...