@@ -62,31 +62,31 @@ protected override IEnumerable<IBHoMObject> IRead(Type type, IList indices, Acti
62
62
else if ( type == typeof ( Opening ) )
63
63
return ReadOpenings ( ) ;
64
64
else if ( type == typeof ( Constraint4DOF ) )
65
- return ReadConstraints4DOF ( ) ;
65
+ return ReadConstraints4DOF ( indices ? . Cast < object > ( ) . Select ( x => x . ToString ( ) ) . ToList ( ) ) ;
66
66
else if ( type == typeof ( Constraint6DOF ) )
67
- return ReadConstraints6DOF ( ) ;
67
+ return ReadConstraints6DOF ( indices ? . Cast < object > ( ) . Select ( x => x . ToString ( ) ) . ToList ( ) ) ;
68
68
else if ( typeof ( IMaterialFragment ) . IsAssignableFrom ( type ) )
69
- return ReadMaterials ( ) ;
69
+ return ReadMaterials ( indices ? . Cast < object > ( ) . Select ( x => x . ToString ( ) ) . ToList ( ) ) ;
70
70
else if ( type == typeof ( Panel ) )
71
71
return ReadPanels ( indices ) ;
72
72
else if ( type == typeof ( FEMesh ) )
73
73
return ReadMeshes ( indices ) ;
74
74
else if ( typeof ( ISurfaceProperty ) . IsAssignableFrom ( type ) )
75
- return ReadSurfaceProperties ( ) ;
75
+ return ReadSurfaceProperties ( indices ? . Cast < object > ( ) . Select ( x => x . ToString ( ) ) . ToList ( ) ) ;
76
76
else if ( type == typeof ( RigidLink ) )
77
77
return ReadRigidLinks ( ) ;
78
78
else if ( type == typeof ( LoadCombination ) )
79
79
return ReadLoadCombinations ( ) ;
80
80
else if ( type == typeof ( LinkConstraint ) )
81
81
return new List < LinkConstraint > ( ) ;
82
82
else if ( type == typeof ( BarRelease ) )
83
- return ReadBarRelease ( ) ;
83
+ return ReadBarRelease ( indices ? . Cast < object > ( ) . Select ( x => x . ToString ( ) ) . ToList ( ) ) ;
84
84
else if ( type == typeof ( Offset ) )
85
85
return ReadOffsets ( ) ;
86
86
else if ( type == typeof ( Loadcase ) )
87
87
return ReadLoadCase ( ) ;
88
88
else if ( typeof ( ISectionProperty ) . IsAssignableFrom ( type ) )
89
- return ReadSectionProperties ( ) ;
89
+ return ReadSectionProperties ( indices ? . Cast < object > ( ) . Select ( x => x . ToString ( ) ) . ToList ( ) ) ;
90
90
else if ( typeof ( ILoad ) . IsAssignableFrom ( type ) )
91
91
return ReadLoads ( type ) ; //TODO: Implement load extraction
92
92
else if ( type . IsGenericType && type . Name == typeof ( BHoMGroup < IBHoMObject > ) . Name )
0 commit comments