Read 3dm file - human plugin

Hi there! I’m using the latest human version available on food4rhino and when using the read 3dm file component, after plugging the “object attributes” on the “A” output, I cannot obtain the correct values. The results are misleading because the output name is correct while others (like layer, colors and lynetipe that I actually need) are taken from the active 3dm instead of the one provided as input. Am I missing something here?

Hope this helps:

var doc = Rhino.FileIO.File3dm.Read(FP);
var layers = doc.AllLayers;
var lineTypes = doc.AllLinetypes;
var cols = new List<Color>();
var lts = new List<string>();
for(int i = 0; i < layers.Count; i++)
  var layer = layers.FindIndex(i);
  var lineType = lineTypes.FindIndex(layer.LinetypeIndex);
  lts.Add(lineType == null ? "Continuous" : lineType.Name);
lay = layers;
col = cols;
lt = lts; (14.9 KB)