<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Drag and Drop - Add Family Parameters in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/drag-and-drop-add-family-parameters/m-p/11568688#M15493</link>
    <description>&lt;P&gt;Thanks for the response! I do have this implemented later in the project, so I'm sure I can craft a way to do it for my specific circumstances.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate the response!&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 00:07:44 GMT</pubDate>
    <dc:creator>coopgodd</dc:creator>
    <dc:date>2022-11-22T00:07:44Z</dc:date>
    <item>
      <title>Drag and Drop - Add Family Parameters</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/drag-and-drop-add-family-parameters/m-p/11566062#M15491</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;I have recently added a drag and drop system into my application and I'm looking to immediately add some parameters to the element I'm dropping into the model. However, I can't find a solid and straight forward way to do this.&lt;/P&gt;&lt;P&gt;Here is the code I have right now (where &lt;EM&gt;chair.File&amp;nbsp;&lt;/EM&gt;is a string path to the file itself):&lt;/P&gt;&lt;LI-CODE lang="general"&gt;List&amp;lt;String&amp;gt; data = new List&amp;lt;String&amp;gt;();
data.Add(chair.File);
UIApplication.DoDragDrop(data);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;What I need to do I add a parameter (like an ID) so that when I connect it to my database I'm able to easily communicate back and forth for other data. Any thoughts on the best way to do this? One of my biggest issues right now is actually &lt;STRONG&gt;getting the object I've just dropped&lt;/STRONG&gt; in to save the element or element ID in a variable within my code! So that would be my most pressing question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 00:42:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/drag-and-drop-add-family-parameters/m-p/11566062#M15491</guid>
      <dc:creator>coopgodd</dc:creator>
      <dc:date>2022-11-21T00:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop - Add Family Parameters</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/drag-and-drop-add-family-parameters/m-p/11566811#M15492</link>
      <description>&lt;P&gt;Why not use DoDragDrop(Object, IDropHandler)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then place the family and update the parameter in the execute method on IDropHandler. In reality you should probably implement&amp;nbsp;IControllableDropHandler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think what you are using instead is just doing things the way Revit would with that kind of operation by default.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 10:07:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/drag-and-drop-add-family-parameters/m-p/11566811#M15492</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2022-11-21T10:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop - Add Family Parameters</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/drag-and-drop-add-family-parameters/m-p/11568688#M15493</link>
      <description>&lt;P&gt;Thanks for the response! I do have this implemented later in the project, so I'm sure I can craft a way to do it for my specific circumstances.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate the response!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 00:07:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/drag-and-drop-add-family-parameters/m-p/11568688#M15493</guid>
      <dc:creator>coopgodd</dc:creator>
      <dc:date>2022-11-22T00:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop - Add Family Parameters</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/drag-and-drop-add-family-parameters/m-p/11575958#M15494</link>
      <description>&lt;P&gt;There is an issue with this approach because I am getting the data for the object from an external file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you or anyone else have any ideas as to how to extract the object data from a file? Otherwise, I can use a handler but it won't do anything!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 15:39:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/drag-and-drop-add-family-parameters/m-p/11575958#M15494</guid>
      <dc:creator>coopgodd</dc:creator>
      <dc:date>2022-11-24T15:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop - Add Family Parameters</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/drag-and-drop-add-family-parameters/m-p/11576158#M15495</link>
      <description>&lt;P&gt;Probably your best option is to implement an IUpdater that Executes in response to the items being added to the document and then updates their parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume you are dropping rfa files?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are dragging groups of these, then you need a key to identify that newly created instance in the document so the updater knows what to do with it. However that is easy: you can only at one point in time drag a group of files where each is a different rfa. It isn't possible to drag the same rfa to two locations for one drop so all you really need to do is identify each created item by family name etc. that will then link to what parameters need to be assigned for it in that instance in time. Also the reality is that if you drag more than one file it will add the families but not prompt for instance placement (just adding types).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 17:28:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/drag-and-drop-add-family-parameters/m-p/11576158#M15495</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2022-11-24T17:28:21Z</dc:date>
    </item>
  </channel>
</rss>

