Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Spectacles.RevitExporter/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -415,12 +415,12 @@ public Result Execute(
{
try
{
if (camera.IsPerspective)
if ((camera.IsTemplate == false) && (camera.IsPerspective))
{
ViewOrientation3D vo = camera.GetOrientation();
cameraNames.Add(camera.Name);
cameraPositions.Add((-vo.EyePosition.X * 304.8).ToString() + "," + (vo.EyePosition.Z * 304.8).ToString() + "," + (vo.EyePosition.Y* 304.8).ToString());
cameraTargets.Add((-vo.ForwardDirection.X * 304.8).ToString() + "," + (vo.ForwardDirection.Z * 304.8).ToString() + "," + (vo.ForwardDirection.Y* 304.8).ToString());
cameraTargets.Add((-vo.ForwardDirection.X).ToString() + "," + (vo.ForwardDirection.Z).ToString() + "," + (vo.ForwardDirection.Y).ToString());
}
}
catch { }
Expand Down
6 changes: 3 additions & 3 deletions src/Spectacles.RevitExporter/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Thornton Tomasetti")]
[assembly: AssemblyProduct("Spectacles.RevitExporter")]
[assembly: AssemblyCopyright("Copyright 2015 � Thornton Tomasetti")]
[assembly: AssemblyCopyright("Copyright 2015-2017 � Thornton Tomasetti, et al.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand Down Expand Up @@ -75,5 +75,5 @@
// 2014-11-25 2015.0.0.28 skip elements with null category in OnElementEnd as well
// 2015-02-15 2015.0.0.29 incremented copyright year
//
[assembly: AssemblyVersion("0.1.0.3")]
[assembly: AssemblyFileVersion("0.1.0.3")]
[assembly: AssemblyVersion("0.1.0.4")]
[assembly: AssemblyFileVersion("0.1.0.4")]
293 changes: 147 additions & 146 deletions src/Spectacles.RevitExporter/Spectacles.RevitExporter.csproj
Original file line number Diff line number Diff line change
@@ -1,149 +1,150 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
None
</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>
</ProductVersion>
<SchemaVersion>
</SchemaVersion>
<ProjectGuid>{3F865D22-8849-4DFA-9E7C-3533A8A159EA}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Spectacles.RevitExporter</RootNamespace>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2015\Revit.exe</StartProgram>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2015\Revit.exe</StartProgram>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<AssemblyName>Spectacles.RevitExporter</AssemblyName>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Newtonsoft.Json">
<HintPath>packages\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<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.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xaml" />
<Reference Include="System.XML" />
<Reference Include="System.Xml.Linq" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="App.cs" />
<Compile Include="Command.cs" />
<Compile Include="Command_Viewer.cs" />
<Compile Include="UI\ExportOptions.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UI\ExportOptions.Designer.cs">
<DependentUpon>ExportOptions.cs</DependentUpon>
</Compile>
<Compile Include="UI\ParameterFilter.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UI\ParameterFilter.Designer.cs">
<DependentUpon>ParameterFilter.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="SpectaclesExportContext.cs" />
<Compile Include="SpectaclesObject.cs" />
<Compile Include="SpectaclesScene.cs" />
<Compile Include="UI\Success.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UI\Success.Designer.cs">
<DependentUpon>Success.cs</DependentUpon>
</Compile>
<Compile Include="Util.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="UI\ExportOptions.resx">
<DependentUpon>ExportOptions.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UI\ParameterFilter.resx">
<DependentUpon>ParameterFilter.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="UI\Success.resx">
<DependentUpon>Success.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\SPECTACLES_32px.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\SPECTACLES_100px.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\CORE logo_horizontal.png" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\SPECTACLES_file_32px.png" />
<EmbeddedResource Include="Resources\SPECTACLES_browser_32px.png" />
<Content Include="SpectaclesRevitExporter.addin" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="AfterClean">
<Delete Files="$(AppData)\Autodesk\REVIT\Addins\2015\RvtVa3c.addin" />
<Delete Files="$(AppData)\Autodesk\REVIT\Addins\2015\RvtVa3c.dll" />
</Target>
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>
</ProductVersion>
<SchemaVersion>
</SchemaVersion>
<ProjectGuid>{3F865D22-8849-4DFA-9E7C-3533A8A159EA}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Spectacles.RevitExporter</RootNamespace>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2015\Revit.exe</StartProgram>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2015\Revit.exe</StartProgram>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<AssemblyName>Spectacles.RevitExporter</AssemblyName>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.8.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<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.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xaml" />
<Reference Include="System.XML" />
<Reference Include="System.Xml.Linq" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="App.cs" />
<Compile Include="Command.cs" />
<Compile Include="Command_Viewer.cs" />
<Compile Include="UI\ExportOptions.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UI\ExportOptions.Designer.cs">
<DependentUpon>ExportOptions.cs</DependentUpon>
</Compile>
<Compile Include="UI\ParameterFilter.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UI\ParameterFilter.Designer.cs">
<DependentUpon>ParameterFilter.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="SpectaclesExportContext.cs" />
<Compile Include="SpectaclesObject.cs" />
<Compile Include="SpectaclesScene.cs" />
<Compile Include="UI\Success.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UI\Success.Designer.cs">
<DependentUpon>Success.cs</DependentUpon>
</Compile>
<Compile Include="Util.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="UI\ExportOptions.resx">
<DependentUpon>ExportOptions.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UI\ParameterFilter.resx">
<DependentUpon>ParameterFilter.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="UI\Success.resx">
<DependentUpon>Success.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\SPECTACLES_32px.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\SPECTACLES_100px.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\CORE logo_horizontal.png" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\SPECTACLES_file_32px.png" />
<EmbeddedResource Include="Resources\SPECTACLES_browser_32px.png" />
<Content Include="SpectaclesRevitExporter.addin" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="AfterClean">
<Delete Files="$(AppData)\Autodesk\REVIT\Addins\2015\RvtVa3c.addin" />
<Delete Files="$(AppData)\Autodesk\REVIT\Addins\2015\RvtVa3c.dll" />
</Target>
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>
Loading