ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Paste in ToolPalette

2 REPLIES 2
Reply
Message 1 of 3
maiterela
398 Views, 2 Replies

Paste in ToolPalette

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))

       ................................................................

2 REPLIES 2
Message 2 of 3
fenton.webb
in reply to: maiterela

I'm just looking into this for you...




Fenton Webb
AutoCAD Engineering
Autodesk

Message 3 of 3
fenton.webb
in reply to: fenton.webb

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.




Fenton Webb
AutoCAD Engineering
Autodesk

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost