File tree Expand file tree Collapse file tree 2 files changed +21
-14
lines changed
Connectors/Revit/Speckle.Connectors.RevitShared Expand file tree Collapse file tree 2 files changed +21
-14
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,13 @@ private List<Element> UnpackElements(IEnumerable<Element> elements)
64
64
var groupElements = g . GetMemberIds ( ) . Select ( doc . GetElement ) ;
65
65
unpackedElements . AddRange ( UnpackElements ( groupElements ) ) ;
66
66
}
67
+ else if ( element is BaseArray baseArray )
68
+ {
69
+ var arrayElements = baseArray . GetCopiedMemberIds ( ) . Select ( doc . GetElement ) ;
70
+ var originalElements = baseArray . GetOriginalMemberIds ( ) . Select ( doc . GetElement ) ;
71
+ unpackedElements . AddRange ( UnpackElements ( arrayElements ) ) ;
72
+ unpackedElements . AddRange ( UnpackElements ( originalElements ) ) ;
73
+ }
67
74
// UNPACK: Family instances (as they potentially have nested families inside)
68
75
else if ( element is FamilyInstance familyInstance )
69
76
{
Original file line number Diff line number Diff line change @@ -63,20 +63,6 @@ CancellationToken cancellationToken
63
63
continue ;
64
64
}
65
65
66
- if ( ! SupportedCategoriesUtils . IsSupportedCategory ( el . Category ) )
67
- {
68
- results . Add (
69
- new (
70
- Status . WARNING ,
71
- el . UniqueId ,
72
- el . Category . Name ,
73
- null ,
74
- new SpeckleException ( $ "Category { el . Category . Name } is not supported.")
75
- )
76
- ) ;
77
- continue ;
78
- }
79
-
80
66
revitElements . Add ( el ) ;
81
67
}
82
68
@@ -98,6 +84,20 @@ CancellationToken cancellationToken
98
84
string sourceType = revitElement . GetType ( ) . Name ;
99
85
try
100
86
{
87
+ if ( ! SupportedCategoriesUtils . IsSupportedCategory ( revitElement . Category ) )
88
+ {
89
+ results . Add (
90
+ new (
91
+ Status . WARNING ,
92
+ revitElement . UniqueId ,
93
+ revitElement . Category . Name ,
94
+ null ,
95
+ new SpeckleException ( $ "Category { revitElement . Category . Name } is not supported.")
96
+ )
97
+ ) ;
98
+ continue ;
99
+ }
100
+
101
101
Base converted ;
102
102
if ( sendConversionCache . TryGetValue ( sendInfo . ProjectId , applicationId , out ObjectReference ? value ) )
103
103
{
You can’t perform that action at this time.
0 commit comments