# Read 3dm file - human plugin

**URL:** <https://discourse.mcneel.com/t/read-3dm-file-human-plugin/98807>\
**Category:** Grasshopper\
**Created:** [March 26, 2020, 7:56am UTC](https://discourse.mcneel.com/t/read-3dm-file-human-plugin/98807 "2020-03-26T07:56:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![l.comaron](https://avatars.discourse-cdn.com/v4/letter/l/c67d28/32.png) [@l.comaron](https://discourse.mcneel.com/u/l.comaron)\
**Post date:** [March 26, 2020, 7:56am UTC](https://discourse.mcneel.com/t/read-3dm-file-human-plugin/98807/1 "2020-03-26T07:56:30Z")

</div>

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?

 ![human](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/8/1/811ff477f1aa32b22dfde495f20a5002d2709cca.jpeg)

---

<div class="post-metadata">

**Author:** ![Mahdiyar](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/mahdiyar/32/472862_2.png) [@Mahdiyar](https://discourse.mcneel.com/u/Mahdiyar)\
**Post date:** [March 26, 2020, 9:09am UTC](https://discourse.mcneel.com/t/read-3dm-file-human-plugin/98807/2 "2020-03-26T09:09:13Z")

</div>

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);
  cols.Add(layer.Color);
  var lineType = lineTypes.FindIndex(layer.LinetypeIndex);
  lts.Add(lineType == null ? "Continuous" : lineType.Name);
}
lay = layers;
col = cols;
lt = lts;

```

[layers.gh](https://discourse.mcneel.com/uploads/short-url/dTb7FAMt9pvT8vSTTM3QNB35E91.gh) (14.9 KB)
