SDK UIAPI Drag and Drop Stopped working

SDK UIAPI Drag and Drop Stopped working

aris.aquino
Contributor Contributor
1,004 Views
9 Replies
Message 1 of 10

SDK UIAPI Drag and Drop Stopped working

aris.aquino
Contributor
Contributor

To whom it may concern,

 

The Drag and Drop has stopped working for Revit 2018. I've also installed Revit 2018 SDK and tested the sample "UIAPI" using Revit 2018 API and it has also stopped working. Please see below how to reproduce to encounter the issue.

 

  1. Compile and install
  2. Run revit in visual studio debugger
  3. Click Addin Integration> Drag and Drop
  4. Form appears
  5. Click on a family symbol from the “Load new furniture families” list to select it
  6. Drag the family symbol to the revit screen
  7. Click on the revit screen to place one or more instances
  8. Hit escape to terminate the command
  9. Close form
  10. Click Drag and Drop again from Addin Integration
  11. Form appears
  12. Click on a family symbol from the “Loaded furniture family symbols” list to select it
  13. Drag the family symbol to the revit screen
  14. Click on the revit screen to place one or more instances
  15. Hit escape to terminate the command

 

All the placed family instances from “Loaded furniture family symbols” will disappear after the command has been terminated.

 

 

 

Hoping Autodesk will roll out a patch or an update to resolve this issue in a short period of time.

 

 

 

Many Thanks in advance!

 

AJ

 

 

0 Likes
1,005 Views
9 Replies
Replies (9)
Message 2 of 10

jeremytammik
Autodesk
Autodesk

Dear Aj,

 

Thank you very much for reporting this issue here in addition to the email correspondence we already had on in.

 

Sorry to hear about it.

 

I reproduced the problem my end and logged the issue REVIT-125399 [UIAPI SDK sample drag and drop fails] with our development team for this on your behalf as it requires further exploration and possibly a modification to our software. Please make a note of this number for future reference.

 

You are welcome to request an update on the status of this issue or to provide additional information on it at any time quoting this change request number.

  

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 10

aris.aquino
Contributor
Contributor

Hi Jeremy,

 

I wanted to touch base with and get an update on this matter?

 

 

Kind regards,

AJ

0 Likes
Message 4 of 10

jeremytammik
Autodesk
Autodesk

Dear Aj,

  

Thank you for your update and prompt. 

 

I checked the status of the issue REVIT-125399 [UIAPI SDK sample drag and drop fails] with our development team. 

 

They have taken a first look and have not finalised anything yet. 

 

I prompted them for a status report and will let you know when I hear back from them.

 

Thank you for your patience.

 

Best regards, 

 

Jeremy

 

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 5 of 10

jeremytammik
Autodesk
Autodesk

Dear Aj,

 

Thank you for your update via private email.

 

It got lost in my inbox.

 

In general, every single piece of communication always gets lost in my inbox.

 

This can be avoided by restricting all communication to the official channels, e.g., via this public discussion thread or the associated ADN case.

 

It also helps to always quote the three points of reference, in this case:

 

 

I heard back from the development team on the latter, and they confirmed that they can reproduce, saying:

 

Updated Steps:

 

  • Download the Revit SDK from  https://www.autodesk.com/developer-network/platform-technologies/revit
  • Install the SDK
  • Navigate to install directory :\Revit 2019 SDK\Samples\UIAPI\CS
  • Copy the UIAPI.addin file to C:\ProgramData\Autodesk\Revit\Addins\2020
  • Edit the add-in to point to the \Revit 2019 SDK\Samples\UIAPI\CS\bin\Release with full system path. (note - I attempted to build the solution but it failed for me, so I'm assuming the release path is always there out of the box, otherwise you may need to build the solution for UIAPI first)
  • Start Revit and confirm the add-in loads successfully (no errors that it is missing, may get a warning to trust the add-in)
  • At the top of the screen there is a NEW tab called add-in integration where drag and drop is located. 
  • Follow the existing steps 3-15

 

Based on the fact that the described behaviour can be successfully reproduced, the issue has now been reassigned to the code owner.

 

That's all the news I have right now.

 

Thank you for your patience while this is being resolved.

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 6 of 10

aris.aquino
Contributor
Contributor

Hi Jeremy,

 

Thank you and I appreciate you taking the time to look into this matter. I've reproduced per your instructions using the latest Revit 2019 SDK and still appears to a failure with no change. I look forward to hearing back to a possible resolution from the original code owner.

 

 

Thanks again,

 

AJ

0 Likes
Message 7 of 10

jeremytammik
Autodesk
Autodesk

Dear Aj,

 

I heard back again from the development team on the issue REVIT-125399 [UIAPI SDK sample drag and drop fails -- 13796456] that I raised for you; they say:

 

The problem is inside LoadedFamilyDropHandler.Execute where it will throw Autodesk.Revit.Exceptions.OperationCanceledException.

 

Catch it and everything is fine.

 

They have closed the issue as 'code fix needed', and raised a new issue to fix it in a future release of Revit.

 

I hope and expect that you can catch the exception and continue normal operations in your code as well, without having to wait for the fix to be implemented.

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 8 of 10

aris.aquino
Contributor
Contributor

Hi Jeremy,

 

I'm not very good with programming and have been trying to fix the issues, but still have not had any luck with catching the exception. It would really be great and appreciated if you can help me or provide some guidance to possibly resolve the issue.

 

I am only using what is in the SDK and sample and would really be nice to get it to continue normal operation as I have not seen any fix being available.

 

 

Kind regards,

AJ


@jeremytammik wrote:

Dear Aj,

 

I heard back again from the development team on the issue REVIT-125399 [UIAPI SDK sample drag and drop fails -- 13796456] that I raised for you; they say:

 

The problem is inside LoadedFamilyDropHandler.Execute where it will throw Autodesk.Revit.Exceptions.OperationCanceledException.

 

Catch it and everything is fine.

 

They have closed the issue as 'code fix needed', and raised a new issue to fix it in a future release of Revit.

 

I hope and expect that you can catch the exception and continue normal operations in your code as well, without having to wait for the fix to be implemented.

 

Best regards,

 

Jeremy

 



@jeremytammik wrote:

Dear Aj,

 

I heard back again from the development team on the issue REVIT-125399 [UIAPI SDK sample drag and drop fails -- 13796456] that I raised for you; they say:

 

The problem is inside LoadedFamilyDropHandler.Execute where it will throw Autodesk.Revit.Exceptions.OperationCanceledException.

 

Catch it and everything is fine.

 

They have closed the issue as 'code fix needed', and raised a new issue to fix it in a future release of Revit.

 

I hope and expect that you can catch the exception and continue normal operations in your code as well, without having to wait for the fix to be implemented.

 

Best regards,

 

Jeremy

 




  

0 Likes
Message 9 of 10

aris.aquino
Contributor
Contributor

Hi again Jeremy,

 

It appeared that your guidance had been there all along and have finally been able to figure out the change in behavior. I've also followed some of the articles posted about prompt cancel throws exception in Revit 2018. I can now continue normal operations.

 

I truly appreciate all your time and help. Considering this case close on my end.

 

 

Cheers,

AJ

0 Likes
Message 10 of 10

jeremytammik
Autodesk
Autodesk

Congratulations on resolving it, and thank you for your appreciation!

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes