mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-17 10:59:05 +00:00
integrate Revit 2025 SDK
This commit is contained in:
@@ -276,7 +276,7 @@ namespace Revit.SDK.Samples.GenericStructuralConnection.CS
|
||||
Schema schema = null;
|
||||
|
||||
Guid guid = GetConnectionHandlerTypeGuid(connection, doc);
|
||||
if (guid != null && guid != Guid.Empty)
|
||||
if (guid != Guid.Empty)
|
||||
schema = Schema.ListSchemas().Where(x => x.GUID == guid).FirstOrDefault();
|
||||
|
||||
return schema;
|
||||
@@ -298,7 +298,7 @@ namespace Revit.SDK.Samples.GenericStructuralConnection.CS
|
||||
return Guid.Empty;
|
||||
|
||||
StructuralConnectionHandlerType connType = (StructuralConnectionHandlerType)doc.GetElement(typeId);
|
||||
if (connType == null || connType.ConnectionGuid == null)
|
||||
if (connType == null)
|
||||
return Guid.Empty;
|
||||
|
||||
return connType.ConnectionGuid;
|
||||
|
||||
Reference in New Issue
Block a user