Hello,
I'm using the Paste function to add blocks in a toolPalette and the last parameter of the function can be NULL or a pointer to a AcTcCatalogItemArray.
I would like to use the result of the function to change some attributes to the item just added, but I don't know how to use the returning value.
How should I declare the "pNewTools" ?
Do I need to make a "new" ?
How I get the AcTcCatalogItem from the pNewTools?
Thanks
Maitere
CAcTcUiToolPalette* pal = ps->FindPalette(pElem[0], NULL, FALSE);
IDataObject* pdo;
if (SUCCEEDED(::OleGetClipboard(&pdo)))
{
AcTcCatalogItemArray pNewTools;??????
if (pal->Paste(pdo, 0, &pNewTools))
................................................................
I'm just looking into this for you...
Sorry for the delay. I had to escalate this through to engineering and back a few times to get the answer for you.
Unfortunately, what we found out is that the API does not return the newly added tools so it can never work. Apologies for this. I have logged a change request for you so that support for this may be added in the future.