Skip to content

Commit 8ccd66b

Browse files
committed
Pass on Id lists to label reads
1 parent 030ab2f commit 8ccd66b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Robot_Adapter/CRUD/Read/Read.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,31 +62,31 @@ protected override IEnumerable<IBHoMObject> IRead(Type type, IList indices, Acti
6262
else if (type == typeof(Opening))
6363
return ReadOpenings();
6464
else if (type == typeof(Constraint4DOF))
65-
return ReadConstraints4DOF();
65+
return ReadConstraints4DOF(indices?.Cast<object>().Select(x => x.ToString()).ToList());
6666
else if (type == typeof(Constraint6DOF))
67-
return ReadConstraints6DOF();
67+
return ReadConstraints6DOF(indices?.Cast<object>().Select(x => x.ToString()).ToList());
6868
else if (typeof(IMaterialFragment).IsAssignableFrom(type))
69-
return ReadMaterials();
69+
return ReadMaterials(indices?.Cast<object>().Select(x => x.ToString()).ToList());
7070
else if (type == typeof(Panel))
7171
return ReadPanels(indices);
7272
else if (type == typeof(FEMesh))
7373
return ReadMeshes(indices);
7474
else if (typeof(ISurfaceProperty).IsAssignableFrom(type))
75-
return ReadSurfaceProperties();
75+
return ReadSurfaceProperties(indices?.Cast<object>().Select(x => x.ToString()).ToList());
7676
else if (type == typeof(RigidLink))
7777
return ReadRigidLinks();
7878
else if (type == typeof(LoadCombination))
7979
return ReadLoadCombinations();
8080
else if (type == typeof(LinkConstraint))
8181
return new List<LinkConstraint>();
8282
else if (type == typeof(BarRelease))
83-
return ReadBarRelease();
83+
return ReadBarRelease(indices?.Cast<object>().Select(x => x.ToString()).ToList());
8484
else if (type == typeof(Offset))
8585
return ReadOffsets();
8686
else if (type == typeof(Loadcase))
8787
return ReadLoadCase();
8888
else if (typeof(ISectionProperty).IsAssignableFrom(type))
89-
return ReadSectionProperties();
89+
return ReadSectionProperties(indices?.Cast<object>().Select(x => x.ToString()).ToList());
9090
else if (typeof(ILoad).IsAssignableFrom(type))
9191
return ReadLoads(type); //TODO: Implement load extraction
9292
else if (type.IsGenericType && type.Name == typeof(BHoMGroup<IBHoMObject>).Name)

0 commit comments

Comments
 (0)