updated to Revit 2023 SDK

This commit is contained in:
Jeremy Tammik
2022-04-07 09:12:58 +02:00
parent e3434c5200
commit ab02648986
342 changed files with 6496 additions and 3140 deletions
@@ -247,7 +247,7 @@ namespace Revit.Samples.MaterialQuantities
// material quantities are not extracted for curtain systems.
if (e.Category != null)
{
if (e.Category.Id.IntegerValue == (int)BuiltInCategory.OST_Doors)
if (e.Category.BuiltInCategory == BuiltInCategory.OST_Doors)
{
FamilyInstance door = e as FamilyInstance;
Wall host = door.Host as Wall;
@@ -377,7 +377,7 @@ namespace Revit.Samples.MaterialQuantities
writer.WriteLine(String.Format("Totals for {0} element {1} (id {2}),{3}",
GetElementTypeName(),
e.Name.Replace(',', ':'), // Element names may have ',' in them
id.IntegerValue, legendLine));
id.ToString(), legendLine));
Dictionary<ElementId, MaterialQuantities> quantities = m_quantitiesPerElement[id];
@@ -43,7 +43,6 @@
<WarningLevel>4</WarningLevel>
<DocumentationFile>
</DocumentationFile>
<CodeAnalysisRuleSet />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -53,7 +52,6 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CodeAnalysisRuleSet />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
@@ -62,8 +60,7 @@
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>
</CodeAnalysisRuleSet>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
@@ -73,8 +70,7 @@
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>
</CodeAnalysisRuleSet>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup>
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>