Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revit2018 - Added new option 'Relate doors to rooms' #95

Open
wants to merge 15 commits into
base: Revit2018
Choose a base branch
from
Open
50 changes: 25 additions & 25 deletions Install/RevitIFCSetupWix/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
Jo64 marked this conversation as resolved.
Show resolved Hide resolved
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">

<Product Id="E0425E4D-F45E-4BEA-A4EA-882FB2606F79" Name="Revit IFC 2019" Language="1033" Version="19.1.0.0" Manufacturer="Autodesk" UpgradeCode="1EAE3C38-F8B4-4FA4-91DB-51A9D7A2B42B">
<Product Id="7D951C34-4C59-4971-9807-5B7B5B59FC3B" Name="Revit IFC for Revit 2018" Language="1033" Version="18.4.1.0" Manufacturer="Autodesk" UpgradeCode="9C2ACF1D-0801-4E78-B25F-AB68B24640D6">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
Expand All @@ -19,10 +19,10 @@
<WixVariable Id="WixUIDefUserDefTxt" Value="$(var.ProjectDir)..\Program Files to Install\DefaultUserDefinedParameterSets.txt"></WixVariable>
<WixVariable Id="WixUICOBieUserDefTxt" Value="$(var.ProjectDir)..\Program Files to Install\IFC2x3 Extended FM HandOver View.txt"></WixVariable>

<Feature Id="ProductFeature" Title="Revit IFC 2019" Level="1" ConfigurableDirectory='INSTALLDIR'>
<Feature Id="ProductFeature" Title="Revit IFC 2018" Level="1" ConfigurableDirectory='INSTALLDIR'>
<ComponentGroupRef Id="ProductComponents" />
<ComponentGroupRef Id="ProductResourceComponents" />
<ComponentGroupRef Id="ProductFRFiles" />
<!--<ComponentGroupRef Id="ProductFRFiles" />-->
<ComponentGroupRef Id="AddinComponents" />
<ComponentGroupRef Id="AddinComponentsLT" />
</Feature>
Expand All @@ -38,22 +38,22 @@
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR" Name="Revit IFC 2019">
<Directory Id="INSTALLDIR" Name="Revit IFC 2018">
<Directory Id="INSTALLRESOURCE" Name="Resource" />
<Directory Id="INSTALLFRUI" Name="fr" />
<!--<Directory Id="INSTALLFRUI" Name="fr" />-->
</Directory>
</Directory>

<Directory Id="CommonAppDataFolder" Name="MyAppDataFolder">
<Directory Id="DIR_ADSK" Name="Autodesk">
<Directory Id="DIR_REVIT" Name="Revit">
<Directory Id="DIR_ADDINS" Name="Addins">
<Directory Id="DIR_Addins" Name="2019"/>
<Directory Id="DIR_Addins" Name="2018"/>
</Directory>
</Directory>
<Directory Id="DIR_REVIT_LT" Name="RevitLT">
<Directory Id="DIR_ADDINS_LT" Name="Addins">
<Directory Id="DIR_Addins_LT" Name="2019"/>
<Directory Id="DIR_Addins_LT" Name="2018"/>
</Directory>
</Directory>
</Directory>
Expand All @@ -64,25 +64,25 @@
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLDIR">
<Component Id = "COMP_IFC_Export_DLL" Guid="D59E44AA-89A3-4CD7-AD9C-8D4D7AC6026B">
<File Id ="FILE_Ifc_Export_DLL" Name="Revit.IFC.Export.dll" Source="$(var.ProjectDir)..\..\..\..\..\..\Releasex64\Addons\Revit.IFC\Revit.IFC.Export.dll" KeyPath="yes" />
</Component>
<Component Id = "COMP_IFC_Export_Sig" Guid="2EE671F2-165C-4DD6-A216-672FB7567FE1">
<File Id ="FILE_Ifc_Export_Sig" Name="Revit.IFC.Export.sig" Source="$(var.ProjectDir)..\..\..\..\..\..\Releasex64\Addons\Revit.IFC\Revit.IFC.Export.sig" KeyPath="yes" />
<File Id ="FILE_Ifc_Export_DLL" Name="Revit.IFC.Export.dll" Source="$(var.ProjectDir)..\..\Source\Revit.IFC.Export\bin\Release\Revit.IFC.Export.dll" KeyPath="yes" />
</Component>
<!--<Component Id = "COMP_IFC_Export_Sig" Guid="2EE671F2-165C-4DD6-A216-672FB7567FE1">
<File Id ="FILE_Ifc_Export_Sig" Name="Revit.IFC.Export.sig" Source="$(var.ProjectDir)..\..\Source\Revit.IFC.Export\bin\Release\Revit.IFC.Export.sig" KeyPath="yes" />
</Component>-->
<Component Id = "COMP_IFC_Import_DLL" Guid="E2F0633B-F323-430C-A368-76DBF939FD0D">
<File Id ="FILE_Ifc_Import_DLL" Name="Revit.IFC.Import.dll" Source="$(var.ProjectDir)..\..\..\..\..\..\Releasex64\Addons\Revit.IFC\Revit.IFC.Import.dll" KeyPath="yes" />
</Component>
<Component Id = "COMP_IFC_Import_Sig" Guid="48EE6912-FCF6-4AE5-9A63-F5A98DFEE811">
<File Id ="FILE_Ifc_Import_Sig" Name="Revit.IFC.Import.sig" Source="$(var.ProjectDir)..\..\..\..\..\..\Releasex64\Addons\Revit.IFC\Revit.IFC.Import.sig" KeyPath="yes" />
<File Id ="FILE_Ifc_Import_DLL" Name="Revit.IFC.Import.dll" Source="$(var.ProjectDir)..\..\Source\Revit.IFC.Import\bin\Release\Revit.IFC.Import.dll" KeyPath="yes" />
</Component>
<!--<Component Id = "COMP_IFC_Import_Sig" Guid="48EE6912-FCF6-4AE5-9A63-F5A98DFEE811">
<File Id ="FILE_Ifc_Import_Sig" Name="Revit.IFC.Import.sig" Source="$(var.ProjectDir)..\..\Source\Revit.IFC.Import\bin\Release\Revit.IFC.Import.sig" KeyPath="yes" />
</Component>-->
<Component Id = "COMP_IFC_Common_DLL" Guid="C7ED4A2C-DCB1-457E-968F-2DDE9993C1B6">
<File Id ="FILE_Ifc_Common_DLL" Name="Revit.IFC.Common.dll" Source="$(var.ProjectDir)..\..\..\..\..\..\Releasex64\Addons\Revit.IFC\Revit.IFC.Common.dll" KeyPath="yes" />
</Component>
<Component Id = "COMP_IFC_ExternalUI_Sig" Guid="3159B919-CD50-469D-8DDE-FE339CEBBC1C">
<File Id ="FILE_Ifc_ExternalUI_Sig" Name="IFCExportUIOverride.sig" Source="$(var.ProjectDir)..\..\..\..\..\..\ReleaseX64\Addons\Revit.IFC\IFCExportUIOverride.sig" KeyPath="yes" />
<File Id ="FILE_Ifc_Common_DLL" Name="Revit.IFC.Common.dll" Source="$(var.ProjectDir)..\..\Source\Revit.IFC.Common\bin\Release\Revit.IFC.Common.dll" KeyPath="yes" />
</Component>
<!--<Component Id = "COMP_IFC_ExternalUI_Sig" Guid="3159B919-CD50-469D-8DDE-FE339CEBBC1C">
<File Id ="FILE_Ifc_ExternalUI_Sig" Name="IFCExportUIOverride.sig" Source="$(var.ProjectDir)..\..\Source\IFCExporterUIOverride\bin\Release\IFCExportUIOverride.sig" KeyPath="yes" />
</Component>-->
<Component Id = "COMP_IFC_ExternalUI_DLL" Guid="D7F89B58-029F-4062-B226-6F3D2EB7FE5D">
<File Id ="FILE_Ifc_ExternalUI_DLL" Name="IFCExportUIOverride.dll" Source="$(var.ProjectDir)..\..\..\..\..\..\ReleaseX64\Addons\Revit.IFC\IFCExportUIOverride.dll" KeyPath="yes" />
<File Id ="FILE_Ifc_ExternalUI_DLL" Name="IFCExportUIOverride.dll" Source="$(var.ProjectDir)..\..\Source\IFCExporterUIOverride\bin\Release\IFCExportUIOverride.dll" KeyPath="yes" />
</Component>
<Component Id = "COMP_LICENSE_RTF" Guid="9F0851DD-3A43-4D49-AC8C-8B8D2F394A91">
<File Id ="FILE_LICENSE_RTF" Name="LICENSE.rtf" Source="$(var.ProjectDir)..\Program Files to Install\LICENSE.rtf" KeyPath="yes" />
Expand All @@ -93,14 +93,14 @@
<Component Id = "COMP_COBIE_USERDEF_TXT" Guid="2981DA7F-F990-409A-BFF3-18687A50CE7A">
<File Id ="FILE_COBIE_USERDEF_TXT" Name="IFC2x3 Extended FM HandOver View.txt" Source="$(var.ProjectDir)..\Program Files to Install\IFC2x3 Extended FM HandOver View.txt" KeyPath="yes" />
</Component>
<Component Id = "COMP_IFC_INTERFACEUTILITY_DLL" Guid="3CC1A784-B0AE-4F86-BE86-2689E5E9B79D">
<!--<Component Id = "COMP_IFC_INTERFACEUTILITY_DLL" Guid="3CC1A784-B0AE-4F86-BE86-2689E5E9B79D">
<File Id ="FILE_INTERFACEUTILITY_DLL" Name="UserInterfaceUtility.dll" Source="$(var.ProjectDir)..\..\..\..\..\ReleaseX64\UserInterfaceUtility.dll" KeyPath="yes" />
</Component>
<Component Id = "COMP_IFC_INTERFACEUTILITY_PDB" Guid="D7A39A90-E843-4E13-9FC6-EC3C701953F5">
<File Id ="FILE_INTERFACEUTILITY_PDB" Name="UserInterfaceUtility.pdb" Source="$(var.ProjectDir)..\..\..\..\..\ReleaseX64\UserInterfaceUtility.pdb" KeyPath="yes" />
</Component>
</Component>-->
<Component Id = "COMP_Antlr4Runtime_DLL" Guid="EA19D64B-491C-47AD-A019-57E581734481">
<File Id ="FILE_Antlr4Runtime_DLL" Name="Antlr4.Runtime.dll" Source="$(var.ProjectDir)..\..\..\..\..\Source\packages\Antlr4.Runtime.4.6.4\lib\net45\Antlr4.Runtime.dll" KeyPath="yes" />
<File Id ="FILE_Antlr4Runtime_DLL" Name="Antlr4.Runtime.dll" Source="$(var.ProjectDir)..\..\packages\Antlr4.Runtime.4.6.4\lib\net45\Antlr4.Runtime.dll" KeyPath="yes" />
</Component>
<Component Id = "COMP_IFC2X2ADD1_XSD" Guid="3BC747BD-9F67-48C2-AC3E-74C9728F9BC5">
<File Id ="FILE_IFC2X2ADD1_XSD" Name="IFC2X2_ADD1.xsd" Source="$(var.ProjectDir)..\Program Files to Install\IFC2X2_ADD1.xsd" KeyPath="yes" />
Expand Down Expand Up @@ -131,11 +131,11 @@
</Component>
</ComponentGroup>

<ComponentGroup Id="ProductFRFiles" Directory="INSTALLFRUI">
<!--<ComponentGroup Id="ProductFRFiles" Directory="INSTALLFRUI">
<Component Id = "COMP_IFC_ResourceFR_DLL" Guid="ACC9C313-F8EF-4DBB-A0DE-55D662E4857D">
<File Id ="FILE_Ifc_ResourceFR_DLL" Name="IFCExportUIOverride.resources.dll" Source="$(var.ProjectDir)..\..\..\..\..\..\ReleaseX64\Addons\Revit.IFC\fr\IFCExportUIOverride.resources.dll" KeyPath="yes" />
</Component>
</ComponentGroup>
</ComponentGroup>-->

<ComponentGroup Id="AddinComponents" Directory="DIR_Addins">
<Component Id = "COMP_IFC_Addin_manifest" Guid="EC8783CA-DAE8-4233-B714-BB16B5BDBAC3">
Expand Down
17 changes: 10 additions & 7 deletions Install/RevitIFCSetupWix/RevitIFCSetupWix.wixproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,26 @@
<ProductVersion>3.8</ProductVersion>
<ProjectGuid>7dfbd495-c588-4c7b-b8f6-5b793adb06f2</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
<OutputName>Revit IFC for Revit 2015</OutputName>
<OutputName>Revit IFC for Revit 2018</OutputName>
<OutputType>Package</OutputType>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
<RunPostBuildEvent>Always</RunPostBuildEvent>
<SccProjectName>Perforce Project</SccProjectName>
<SccProvider>MSSCCI:Perforce SCM</SccProvider>
<SccProjectName>
</SccProjectName>
<SccProvider>
</SccProvider>
<SccAuxPath />
<SccLocalPath>.</SccLocalPath>
<SccLocalPath>
</SccLocalPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<OutputPath>$(SolutionDir)..\$(Configuration)$(PlatformName)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>Debug</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>$(SolutionDir)..\$(Configuration)$(PlatformName)\</OutputPath>
<OutputPath>$(SolutionDir)\Setup\$(Configuration)$(PlatformName)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
<ItemGroup>
Expand All @@ -42,8 +45,8 @@
<Content Include="buildInstaller.bat" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Source\Revit.IFC.Common\BIM.IFC.Common.csproj">
<Name>BIM.IFC.Common</Name>
<ProjectReference Include="..\..\Source\Revit.IFC.Common\Revit.IFC.Common.csproj">
<Name>Revit.IFC.Common</Name>
<Project>{032ea4dc-181f-4453-9f93-e08de1c07d95}</Project>
<Private>True</Private>
<DoNotHarvest>True</DoNotHarvest>
Expand Down
14 changes: 9 additions & 5 deletions Install/RevitIFCSetupWix/buildInstaller.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ echo %2

set ThisBatFileRoot=%~dp0
rem Set this path to your Wix bin directory.
set WixRoot=%ThisBatFileRoot%..\..\..\..\..\..\ThirdParty\Wix\
rem set WixRoot=%ThisBatFileRoot%..\..\..\..\..\..\ThirdParty\Wix\
set WixRoot="C:\Program Files (x86)\WiX Toolset v3.11\bin\"

rem It is necessary to add the Wix bin directory to the system path temporarily to use the -ext flag below.
SET PATH=%PATH%;%WixRoot%

candle.exe -dProjectDir=%2 -ext WixUtilExtension %2Product.wxs
light.exe -ext WixUtilExtension -out RevitIFC2019.msi product.wixobj -ext WixUIExtension
rem light.exe -ext WixUtilExtension -out RevitIFC2019.msi product.wixobj -ext WixUIExtension
rem light.exe -ext WixUtilExtension -out RevitIFC2018_18410.msi product.wixobj -ext WixUIExtension
light.exe -ext WixUtilExtension -out RevitIFC2018_18410.msi product.wixobj -ext WixUIExtension

copy RevitIFC2019.msi %1..\Releasex64
del RevitIFC2019.msi
rem copy RevitIFC2019.msi %1..\Releasex64
rem echo %1..\Releasex64\RevitIFC2019.msi

echo %1..\Releasex64\RevitIFC2019.msi
del "*.wix*"
del "Revit IFC for Revit 2018.msi"
12 changes: 9 additions & 3 deletions Revit.IFC.sln
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Jo64 marked this conversation as resolved.
Show resolved Hide resolved

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.489
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Revit.IFC.Import", "Source\Revit.IFC.Import\Revit.IFC.Import.csproj", "{7F987D09-9716-4F50-ADE0-278E4B537101}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Revit.IFC.Export", "Source\Revit.IFC.Export\Revit.IFC.Export.csproj", "{BCE5141A-291B-4CD8-A69B-7B9345AA00E9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Revit.IFC.Common", "Source\Revit.IFC.Common\Revit.IFC.Common.csproj", "{032EA4DC-181F-4453-9F93-E08DE1C07D95}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IFCExporterUI", "Source\IFCExporterUIOverride\IFCExporterUIOverride.csproj", "{BF694550-5BEB-4DCF-8EC2-A5904690DC17}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IFCExporterUIOverride", "Source\IFCExporterUIOverride\IFCExporterUIOverride.csproj", "{BF694550-5BEB-4DCF-8EC2-A5904690DC17}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Install", "Install", "{88C55E9A-2767-48B7-A035-E3D864C4FF09}"
EndProject
Expand Down Expand Up @@ -79,6 +82,9 @@ Global
GlobalSection(NestedProjects) = preSolution
{7DFBD495-C588-4C7B-B8F6-5B793ADB06F2} = {88C55E9A-2767-48B7-A035-E3D864C4FF09}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A466EE46-9A7B-493D-A047-4F929CB6ADFA}
EndGlobalSection
GlobalSection(DPCodeReviewSolutionGUID) = preSolution
DPCodeReviewSolutionGUID = {00000000-0000-0000-0000-000000000000}
EndGlobalSection
Expand Down
7 changes: 7 additions & 0 deletions Source/IFCExporterUIOverride/IFCExportConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ public class IFCExportConfiguration
/// </summary>
public string COBieProjectInfo { get; set; } = "";

public bool DoorBelongsToRoom { get; set; }

/// <summary>
/// Value indicating whether steel elements should be exported.
/// </summary>
Expand Down Expand Up @@ -292,6 +294,7 @@ private IFCExportConfiguration()
this.ExportSpecificSchedules = false;
this.TessellationLevelOfDetail = 0.5;
this.UseOnlyTriangulation = false;
this.DoorBelongsToRoom = false;
this.StoreIFCGUID = false;
this.m_isBuiltIn = false;
this.m_isInSession = false;
Expand Down Expand Up @@ -360,6 +363,7 @@ private IFCExportConfiguration()
// The default tesselationLevelOfDetail will be low
configuration.TessellationLevelOfDetail = 0.5;
configuration.UseOnlyTriangulation = false;
configuration.DoorBelongsToRoom = false;
configuration.StoreIFCGUID = false;
configuration.m_isBuiltIn = true;
configuration.m_isInSession = false;
Expand Down Expand Up @@ -410,6 +414,7 @@ private IFCExportConfiguration(IFCExportConfiguration other)
this.IncludeSiteElevation = other.IncludeSiteElevation;
this.TessellationLevelOfDetail = other.TessellationLevelOfDetail;
this.UseOnlyTriangulation = other.UseOnlyTriangulation;
this.DoorBelongsToRoom = other.DoorBelongsToRoom;
this.StoreIFCGUID = other.StoreIFCGUID;
this.m_isBuiltIn = other.m_isBuiltIn;
this.m_isInSession = other.m_isInSession;
Expand Down Expand Up @@ -465,6 +470,7 @@ private IFCExportConfiguration(String name, IFCExportConfiguration other)
this.IncludeSiteElevation = other.IncludeSiteElevation;
this.TessellationLevelOfDetail = other.TessellationLevelOfDetail;
this.UseOnlyTriangulation = other.UseOnlyTriangulation;
this.DoorBelongsToRoom = other.DoorBelongsToRoom;
this.ActivePhaseId = other.ActivePhaseId;
this.ExportRoomsInView = other.ExportRoomsInView;
this.m_isBuiltIn = false;
Expand Down Expand Up @@ -538,6 +544,7 @@ public void UpdateOptions(IFCExportOptions options, ElementId filterViewId)
options.AddOption("SitePlacement", SitePlacement.ToString());
options.AddOption("TessellationLevelOfDetail", TessellationLevelOfDetail.ToString());
options.AddOption("UseOnlyTriangulation", UseOnlyTriangulation.ToString());
options.AddOption("DoorBelongsToRoom", DoorBelongsToRoom.ToString());
options.AddOption("ActiveViewId", ActiveViewId.ToString());
options.AddOption("StoreIFCGUID", StoreIFCGUID.ToString());

Expand Down
3 changes: 2 additions & 1 deletion Source/IFCExporterUIOverride/IFCExporterUIWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@
<CheckBox Content="{x:Static p:Resources.IncludeIfcSiteElevation}" Height="16" HorizontalAlignment="Left" Margin="-74,107,0,0" x:Name="checkboxIncludeIfcSiteElevation" VerticalAlignment="Top" Checked="checkboxIfcSiteElevation_Checked" Unchecked="checkboxIfcSiteElevation_Checked" Width="569" Grid.ColumnSpan="5" />
<CheckBox Content="{x:Static p:Resources.StoreIFCGUID}" Height="16" HorizontalAlignment="Left" Margin="-74,127,0,0" x:Name="checkboxStoreIFCGUID" VerticalAlignment="Top" Checked="checkboxStoreIFCGUID_Checked" Unchecked="checkboxStoreIFCGUID_Checked" Width="569" Grid.ColumnSpan="5" />
<CheckBox Content="{x:Static p:Resources.ExportBoundingBox}" Height="16" HorizontalAlignment="Left" Margin="-74,147,0,0" Name="checkboxExportBoundingBox" VerticalAlignment="Top" Checked="checkboxExportBoundingBox_Checked" Unchecked="checkboxExportBoundingBox_Checked" Width="569" Grid.ColumnSpan="5" />
<CheckBox Content="{x:Static p:Resources.UseOnlyTriangulation}" Margin="-74,167,0,101" Grid.ColumnSpan="5" x:Name="checkBox_TriangulationOnly" Checked="checkBox_TriangulationOnly_Checked" Unchecked="checkBox_TriangulationOnly_Unchecked" ToolTip="Use this option if any tessellated geometry should remain as triangulated faces, or if the export performance is affected"/>
<CheckBox Content="{x:Static p:Resources.UseOnlyTriangulation}" Margin="-74,167,0,0" Grid.ColumnSpan="5" x:Name="checkBox_TriangulationOnly" Checked="checkBox_TriangulationOnly_Checked" Unchecked="checkBox_TriangulationOnly_Unchecked" ToolTip="Use this option if any tessellated geometry should remain as triangulated faces, or if the export performance is affected" />
<CheckBox Content="{x:Static p:Resources.DoorBelongsToRoom}" Height="16" Margin="-74,187,0,81" Grid.ColumnSpan="5" x:Name="checkBox_DoorBelongsToRoom" Checked="CheckBox_DoorBelongsToRoom_Checked" Unchecked="CheckBox_DoorBelongsToRoom_Unchecked" ToolTip="Use this option if the door belongs to the room and not to the building storey" />
</Grid>
</TabItem>
<!--
Expand Down
12 changes: 12 additions & 0 deletions Source/IFCExporterUIOverride/IFCExporterUIWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1726,5 +1726,17 @@ private void checkboxIncludeSteelElements_Unchecked(object sender, RoutedEventAr
IFCExportConfiguration configuration = GetSelectedConfiguration();
configuration.IncludeSteelElements = false;
}

private void CheckBox_DoorBelongsToRoom_Checked(object sender, RoutedEventArgs e)
{
IFCExportConfiguration configuration = GetSelectedConfiguration();
configuration.DoorBelongsToRoom = true;
}
private void CheckBox_DoorBelongsToRoom_Unchecked(object sender, RoutedEventArgs e)
{
IFCExportConfiguration configuration = GetSelectedConfiguration();
configuration.DoorBelongsToRoom = false;
}

}
}
Loading