<?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: Revit API AddInCommandBinding for ID_PROCESS_DROP in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5116462#M76545</link>
    <description>&lt;P&gt;Looks like that's new to the 2015 api? is that right? &amp;nbsp;If so, that won't work for this in particular as I need the code to work for 2014 as well.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jun 2014 18:49:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-25T18:49:23Z</dc:date>
    <item>
      <title>Revit API AddInCommandBinding for ID_PROCESS_DROP</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5096004#M76540</link>
      <description>&lt;P&gt;I'm trying to bind the drag/drop of a family into the project and disable it.&lt;/P&gt;&lt;P&gt;My code is based on the Revit 2014 SDK Sample&amp;nbsp;&lt;A rel="nofollow" href="http://help.autodesk.com/view/RVT/2014/ENU/?guid=GUID-1C7289DE-8D10-47B5-B6DB-EA1310851C8F" target="_blank"&gt;DisableCommand&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My code has the .CanHaveBinding test and I have a dialog that displays success or failure. When I run the command it shows success, but I'm still able to drag drop families. Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;RevitCommandId commandId2 = RevitCommandId.LookupCommandId("ID_PROCESS_DROP"); 
    if (!commandId2.CanHaveBinding)
    {
        TaskDialog.Show("Error", "Drag/Drop cannot be overridden.");
    }
    else
    {
        TaskDialog.Show("Success", "Drag/Drop can be overridden.");
    }
try
{
    AddInCommandBinding dropBinding = uiapp.CreateAddInCommandBinding(commandId2);
    dropBinding.Executed += new EventHandler&amp;lt;Autodesk.Revit.UI.Events.ExecutedEventArgs&amp;gt;(dragDropDisable);
}
catch (Exception ex)
{
     Console.WriteLine("Error: {0}",ex.ToString());
}

    private void dragDropDisable( object sender, Autodesk.Revit.UI.Events.ExecutedEventArgs args)
{
TaskDialog.Show("Disabled", "Never Drag/Drop families into your project!");
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jun 2014 04:32:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5096004#M76540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-15T04:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API AddInCommandBinding for ID_PROCESS_DROP</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5116308#M76541</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We don't believe the generic drag'n'drop can be tracked with this command binding... but, more important, what is exactaly that you want to achieve with that? We may be able to find a better alternative...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 17:45:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5116308#M76541</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2014-06-25T17:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API AddInCommandBinding for ID_PROCESS_DROP</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5116340#M76542</link>
      <description>I'd like to block/ replace drag/dropping a family into the project environment.&lt;BR /&gt;Just replace with a task dialog that says that action is not allowed.&lt;BR /&gt;Very similar to SDK example that demonstrates AddInCommandBinding&lt;BR /&gt;&lt;BR /&gt;Erik Lewis, CDT, CM-BIM&lt;BR /&gt;BIM Manager&lt;BR /&gt;&lt;BR /&gt;Devenney Group Ltd., Architects&lt;BR /&gt;Phoenix-Los Angeles-Oakland-Dallas&lt;BR /&gt;&lt;BR /&gt;201 West Indian School Road&lt;BR /&gt;Phoenix, AZ 85013&lt;BR /&gt;&lt;BR /&gt;T: 602.343.4099&lt;BR /&gt;M: 602.316.2514&lt;BR /&gt;elewis@devenneygroup.com&lt;BR /&gt;&lt;BR /&gt;Leading the transformation of healthcare delivery through value-driven innovation&lt;BR /&gt;&lt;A target="_blank" href="http://www.devenneygroup.com"&gt;www.devenneygroup.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This message may contain confidential and/or proprietary information, and it is intended for the person/entity to which it was originally addressed. Any use by others is strictly prohibited.</description>
      <pubDate>Wed, 25 Jun 2014 17:56:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5116340#M76542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-25T17:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API AddInCommandBinding for ID_PROCESS_DROP</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5116372#M76543</link>
      <description>&lt;P&gt;So what about track the 'FamilyLoadingIntoDocument' event? Inside it, just call e.Cancel()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;public Result OnStartup(UIControlledApplication a)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; a.ControlledApplication.FamilyLoadingIntoDocument += ControlledApplication_FamilyLoadingIntoDocument;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 18:07:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5116372#M76543</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2014-06-25T18:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API AddInCommandBinding for ID_PROCESS_DROP</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5116428#M76544</link>
      <description>Does that event include the regular Load Family Command and the Load into Project Command from the Family editor environment? I could look in the API help, but since I have your ear...&lt;BR /&gt;&lt;BR /&gt;Really any hook to grab that event and block/disable it would work.&lt;BR /&gt;I'll try it tonight.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Erik Lewis, CDT, CM-BIM&lt;BR /&gt;BIM Manager&lt;BR /&gt;&lt;BR /&gt;Devenney Group Ltd., Architects&lt;BR /&gt;Phoenix-Los Angeles-Oakland-Dallas&lt;BR /&gt;&lt;BR /&gt;201 West Indian School Road&lt;BR /&gt;Phoenix, AZ 85013&lt;BR /&gt;&lt;BR /&gt;T: 602.343.4099&lt;BR /&gt;M: 602.316.2514&lt;BR /&gt;elewis@devenneygroup.com&lt;BR /&gt;&lt;BR /&gt;Leading the transformation of healthcare delivery through value-driven innovation&lt;BR /&gt;&lt;A target="_blank" href="http://www.devenneygroup.com"&gt;www.devenneygroup.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This message may contain confidential and/or proprietary information, and it is intended for the person/entity to which it was originally addressed. Any use by others is strictly prohibited.</description>
      <pubDate>Wed, 25 Jun 2014 18:36:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5116428#M76544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-25T18:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API AddInCommandBinding for ID_PROCESS_DROP</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5116462#M76545</link>
      <description>&lt;P&gt;Looks like that's new to the 2015 api? is that right? &amp;nbsp;If so, that won't work for this in particular as I need the code to work for 2014 as well.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 18:49:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5116462#M76545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-25T18:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API AddInCommandBinding for ID_PROCESS_DROP</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5116536#M76546</link>
      <description>&lt;P&gt;If this is about preventing families to be loaded into a document, perhaps the Dynamic Updater framework can be used, which has been around since 2014 (and maybe even earlier.) And updater can be set to be notified about new elements created (types, in this case) and can post a failure that would prevent the current action (regardless of what it actually is) from being committed. Naturally, this approach may be less obvious to the end user than disabling a particular command, but the final effect would be the same – loading in new types is disabled.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 19:16:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5116536#M76546</guid>
      <dc:creator>arnostlobel</dc:creator>
      <dc:date>2014-06-25T19:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API AddInCommandBinding for ID_PROCESS_DROP</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5116622#M76547</link>
      <description>&lt;P&gt;The idea is to prevent&amp;nbsp;&lt;EM&gt;only&lt;/EM&gt; that method of loading families. &amp;nbsp;When Families are dragged and dropped into the project, they don't trigger type catalogs and it goes against our company best practices.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had thought about Dynamic Updater, but I wasn't sure how to identify when that particular event happened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 20:20:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-addincommandbinding-for-id-process-drop/m-p/5116622#M76547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-25T20:20:26Z</dc:date>
    </item>
  </channel>
</rss>

