Skip to content

Commit

Permalink
make some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KennanChan committed Dec 21, 2017
1 parent c446bf5 commit 3800114
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
5 changes: 3 additions & 2 deletions RevitAPIToolbox/RevitAPIToolbox.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="RevitAPI">
<HintPath>..\..\..\Program Files\Autodesk\Revit 2014\RevitAPI.dll</HintPath>
<HintPath>C:\Program Files\Autodesk\Revit 2014\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>..\..\..\Program Files\Autodesk\Revit 2014\RevitAPIUI.dll</HintPath>
<HintPath>C:\Program Files\Autodesk\Revit 2014\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
Expand Down
4 changes: 2 additions & 2 deletions RevitAPIToolbox2014/RevitAPIToolbox2014.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="RevitAPI">
<HintPath>..\..\..\Program Files\Autodesk\Revit 2014\RevitAPI.dll</HintPath>
<HintPath>C:\Program Files\Autodesk\Revit 2014\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>..\..\..\Program Files\Autodesk\Revit 2014\RevitAPIUI.dll</HintPath>
<HintPath>C:\Program Files\Autodesk\Revit 2014\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
Expand Down
6 changes: 4 additions & 2 deletions RevitAPIWheel/ExternalEvent/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ public Result OnStartup(UIControlledApplication application)
/// <param name="e">Arguments to config the event</param>
private static void Application_Idling(object sender, Autodesk.Revit.UI.Events.IdlingEventArgs e)
{
//Internal method for the main process to get a raised external event handler to execute
var handler = ExternalEventWheel.TryGetEvent();
if (null == handler) return;
var app = sender as UIApplication;
if (null == app) return;
//Internal method for the main process to get a raised external event handler to execute
ExternalEventWheel.TryGetEvent()?.Execute(app);
handler.Execute(app);
}

public Result OnShutdown(UIControlledApplication application)
Expand Down
4 changes: 2 additions & 2 deletions Test/Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="RevitAPI">
<HintPath>..\..\..\Program Files\Autodesk\Revit 2014\RevitAPI.dll</HintPath>
<HintPath>C:\Program Files\Autodesk\Revit 2014\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>..\..\..\Program Files\Autodesk\Revit 2014\RevitAPIUI.dll</HintPath>
<HintPath>C:\Program Files\Autodesk\Revit 2014\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
Expand Down
1 change: 0 additions & 1 deletion Test/TestGeometry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Autodesk.Revit.UI.Selection;
using Techyard.Revit.Geometry;
using Techyard.Revit.UI;

Expand Down

0 comments on commit 3800114

Please sign in to comment.