ObjectARX

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

Paste in ToolPalette

224 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
Posts: 352
Registered: ‎07-24-2007
Message 2 of 3 (188 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
Posts: 352
Registered: ‎07-24-2007
Message 3 of 3 (138 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


You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community