ObjectARX

Reply
Active Member
maiterela
Posts: 9
Registered: ‎11-12-2012
Message 1 of 3 (230 Views)

Paste in ToolPalette

230 Views, 2 Replies
12-12-2012 10:03 AM

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(::smileysurprised:leGetClipboard(&pdo)))

  {

    AcTcCatalogItemArray pNewTools;??????

  

   if (pal->Paste(pdo, 0, &pNewTools))

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

ADN Support Specialist
fenton.webb
Posts: 352
Registered: ‎07-24-2007
Message 2 of 3 (194 Views)

Re: Paste in ToolPalette

12-17-2012 01:44 PM in reply to: maiterela

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





Fenton Webb

Developer Technical Services

Autodesk Developer Network


ADN Support Specialist
fenton.webb
Posts: 352
Registered: ‎07-24-2007
Message 3 of 3 (144 Views)

Re: Paste in ToolPalette

01-22-2013 10:28 AM 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

Developer Technical Services

Autodesk Developer Network


Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.