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];