Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Fixed the Project.cs class for compatibility with Tekla/Solibri, remo…
Browse files Browse the repository at this point in the history
…ved startup lag when connecting to API, added StatHat tracking
  • Loading branch information
teocomi committed Nov 26, 2015
1 parent 4233bbe commit c5dd277
Show file tree
Hide file tree
Showing 17 changed files with 912 additions and 494 deletions.
Binary file added Assets/Thumbs.db
Binary file not shown.
Binary file added BCFier.exe
Binary file not shown.
290 changes: 144 additions & 146 deletions Bcfier.Revit/Bcfier.Revit.csproj
Original file line number Diff line number Diff line change
@@ -1,155 +1,153 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{2D132990-5674-42DF-93BF-55BA8FDC6A23}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Bcfier.Revit</RootNamespace>
<AssemblyName>Bcfier.Revit</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<TargetFrameworkProfile />
<StartAction>Program</StartAction>
<StartProgram>C:\Program Files\Autodesk\Revit 2015\Revit.exe</StartProgram>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ManualObfuscation|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ManualObfuscation\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="RevitAPI">
<HintPath>..\..\..\Program Files\Autodesk\Revit 2016\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>..\..\..\Program Files\Autodesk\Revit 2016\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<Compile Include="AddViewRevit.xaml.cs">
<DependentUpon>AddViewRevit.xaml</DependentUpon>
</Compile>
<Compile Include="Data\IfcGuid.cs" />
<Compile Include="Data\RevitUtils.cs" />
<Page Include="AddViewRevit.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="RevitWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="Entry\ExtAppBcfier.cs" />
<Compile Include="Entry\CmdMain.cs" />
<Compile Include="Entry\ExtEvntOpenView.cs" />
<Compile Include="Entry\AppMain.cs" />
<Compile Include="RevitWindow.xaml.cs">
<DependentUpon>RevitWindow.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<AppDesigner Include="Properties\" />
<None Include="Bcfier.Revit.addin">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Bcfier\Bcfier.csproj">
<Project>{503ce2c1-09d7-4f15-bb42-86196ee01ed4}</Project>
<Name>Bcfier</Name>
<Private>True</Private>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Resource Include="Assets\icon.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{2D132990-5674-42DF-93BF-55BA8FDC6A23}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Bcfier.Revit</RootNamespace>
<AssemblyName>Bcfier.Revit</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<TargetFrameworkProfile />
<StartAction>Program</StartAction>
<StartProgram>C:\Program Files\Autodesk\Revit 2015\Revit.exe</StartProgram>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ManualObfuscation|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ManualObfuscation\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="RevitAPI">
<HintPath>C:\Program Files\Autodesk\Revit 2015\RevitAPI.dll</HintPath>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>C:\Program Files\Autodesk\Revit 2015\RevitAPIUI.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<Compile Include="AddViewRevit.xaml.cs">
<DependentUpon>AddViewRevit.xaml</DependentUpon>
</Compile>
<Compile Include="Data\IfcGuid.cs" />
<Compile Include="Data\RevitUtils.cs" />
<Page Include="AddViewRevit.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="RevitWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="Entry\ExtAppBcfier.cs" />
<Compile Include="Entry\CmdMain.cs" />
<Compile Include="Entry\ExtEvntOpenView.cs" />
<Compile Include="Entry\AppMain.cs" />
<Compile Include="RevitWindow.xaml.cs">
<DependentUpon>RevitWindow.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<AppDesigner Include="Properties\" />
<None Include="Bcfier.Revit.addin">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Bcfier\Bcfier.csproj">
<Project>{503ce2c1-09d7-4f15-bb42-86196ee01ed4}</Project>
<Name>Bcfier</Name>
<Private>True</Private>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Resource Include="Assets\icon.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>::xcopy /Y "$(TargetDir)*.*" "C:\ProgramData\Autodesk\Revit\Addins\2015\$(ProjectName)\"
::copy "$(TargetDir)Bcfier.Revit.addin" "C:\ProgramData\Autodesk\Revit\Addins\2015\Bcfier.Revit.addin"
</PostBuildEvent>
</PropertyGroup>
</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
-->
</Project>
4 changes: 2 additions & 2 deletions Bcfier.Revit/Properties/AssemblyInfo.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.1.1")]
[assembly: AssemblyFileVersion("2.0.1.1")]
[assembly: AssemblyVersion("2.0.2")]
[assembly: AssemblyFileVersion("2.0.2")]
[assembly: GuidAttribute("59068325-ACDC-4DB3-892A-1C90C9434BF8")]
1 change: 1 addition & 0 deletions Bcfier.Revit/RevitWindow.xaml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
xmlns:ctr="clr-namespace:Bcfier.UserControls;assembly=Bcfier"
xmlns:data="clr-namespace:Bcfier.Data;assembly=Bcfier"
Title="BCFier for Revit" Width="700" Height="700" Name="mainWin"
Loaded="RevitWindow_OnLoaded"
Closing="Window_Closing" Icon="Assets/icon.ico">
<Window.CommandBindings>
<CommandBinding Command="data:Commands.OpenView" Executed="OnOpenView" />
Expand Down
10 changes: 10 additions & 0 deletions Bcfier.Revit/RevitWindow.xaml.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Autodesk.Revit.UI;

using System.ComponentModel;
using System.Threading.Tasks;
using Component = Bcfier.Bcf.Bcf2.Component;
using Point = Bcfier.Bcf.Bcf2.Point;

Expand Down Expand Up @@ -329,5 +330,14 @@ private void Window_Closing(object sender, CancelEventArgs e)
e.Cancel = Bcfier.onClosing(e);
}
#endregion

private void RevitWindow_OnLoaded(object sender, RoutedEventArgs e)
{
Task.Run(() =>
{
StatHat.Post.EzCounter(@"[email protected]", "BCFierRevitStart", 1);
});
}

}
}
2 changes: 1 addition & 1 deletion Bcfier.Win/MainWindow.xaml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:ctr="clr-namespace:Bcfier.UserControls;assembly=Bcfier"
xmlns:data="clr-namespace:Bcfier.Data;assembly=Bcfier"
Title="BCFier for Windows" Width="700" Height="700" Name="mainWin"

Loaded="MainWindow_OnLoaded"
Closing="Window_Closing" Icon="Assets/icon.ico" >
<Window.CommandBindings>

Expand Down
8 changes: 8 additions & 0 deletions Bcfier.Win/MainWindow.xaml.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.IO;
using System.Windows;
using System.ComponentModel;
using System.Threading.Tasks;
using System.Windows.Input;
using System.Windows.Threading;
using Bcfier.Bcf.Bcf2;
Expand Down Expand Up @@ -75,5 +76,12 @@ private void OnAddView(object sender, ExecutedRoutedEventArgs e)
}
#endregion

private void MainWindow_OnLoaded(object sender, RoutedEventArgs e)
{
Task.Run(() =>
{
StatHat.Post.EzCounter(@"[email protected]", "BCFierWinStart", 1);
});
}
}
}
4 changes: 2 additions & 2 deletions Bcfier.Win/Properties/AssemblyInfo.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.1.1")]
[assembly: AssemblyFileVersion("2.0.1.1")]
[assembly: AssemblyVersion("2.0.2")]
[assembly: AssemblyFileVersion("2.0.2")]
[assembly: GuidAttribute("9FC6BA85-A348-40B4-97C4-6699DA912C21")]
Loading

0 comments on commit c5dd277

Please sign in to comment.