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
+2 -2
View File
@@ -254,7 +254,7 @@ namespace Revit.SDK.Samples.AvoidObstruction.CS
Element curElem = m_rvtDoc.GetElement(cur);
if (curElem.Id == pipe.Id ||
(!(curElem is Pipe) && !(curElem is Duct) &&
curElem.Category.Id.IntegerValue != (int)BuiltInCategory.OST_StructuralFraming))
curElem.Category.BuiltInCategory != BuiltInCategory.OST_StructuralFraming))
{
refs.RemoveAt(i);
}
@@ -522,7 +522,7 @@ namespace Revit.SDK.Samples.AvoidObstruction.CS
ConnectorSet connSet = connItself.AllRefs;
foreach (Connector conn in connSet)
{
if (conn.Owner.Id.IntegerValue != pipe.Id.IntegerValue &&
if (conn.Owner.Id != pipe.Id &&
conn.ConnectorType == ConnectorType.End)
{
return conn;