Launch addin when file is dropped in Revit

Launch addin when file is dropped in Revit

Anonymous
Not applicable
781 Views
3 Replies
Message 1 of 4

Launch addin when file is dropped in Revit

Anonymous
Not applicable

I am working on an addin to import data from a file type that Revit currently doesn't support. Is there a way to activate my addin and take a file that is being dragged and dropped into the current document?

0 Likes
Accepted solutions (1)
782 Views
3 Replies
Replies (3)
Message 2 of 4

matthew_taylor
Advisor
Advisor
Accepted solution

Hi @Anonymous,

If I was looking at doing something like that I would (and did) search for 'drag' (or 'drop', which proved popular) in the Revit API reference. That lead me to http://www.revitapidocs.com/2017/f4561775-33b7-8643-b792-5cc234f7240f.htm

That led me to better search terms, which led me to this blog post (and reference to an SDK example): http://thebuildingcoder.typepad.com/blog/2012/04/drag-and-drop-api.html

 

There are probably more up-to-date examples, but I'll leave the searching to you.

You'll also have to see whether these methods are appropriate for your needs!

 

Let us know how you get on. 🙂

 

Cheers,

 

-Matt


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
Message 3 of 4

Anonymous
Not applicable

Thank you, Matthew. I had searched prior to posting, but apparently I wasn't searching for the right terms. This should get me going in the right direction.

0 Likes
Message 4 of 4

matthew_taylor
Advisor
Advisor

Hi Michael,

No problem.

Sometimes it's just knowing the right words!

 

Have a good weekend.

 

Cheers,

 

-Matt


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes