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?
CAcTcUiToolPalette* pal = ps->FindPalette(pElem, NULL, FALSE);
if (pal->Paste(pdo, 0, &pNewTools))
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.
Access a broad range of knowledge to help get the most out of your products and services.