# Attribute error in getting dimensions of list to write to a csv

**URL:** https://discourse.vtk.org/t/attribute-error-in-getting-dimensions-of-list-to-write-to-a-csv/1648
**Category:** Support
**Created:** [August 26, 2019, 2:07am UTC](https://discourse.vtk.org/t/attribute-error-in-getting-dimensions-of-list-to-write-to-a-csv/1648 "2019-08-26T02:07:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tejas.canchi](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/aeb1de/32.png) [@tejas.canchi](https://discourse.vtk.org/u/tejas.canchi)
#### Post date: [August 26, 2019, 2:07am UTC](https://discourse.vtk.org/t/attribute-error-in-getting-dimensions-of-list-to-write-to-a-csv/1648/1 "2019-08-26T02:07:45Z")

</div>

I am trying to write a list that has been processed on flow image data to write to a CSV. I am getting the following error. Does anyone have any leads?

return list(self.vtsData.GetDimensions())  
AttributeError: ‘vtkCommonDataModelPython.vtkPolyData’ object has no attribute ‘GetDimensions’

Thanks

Tejas

---

<div class="post-metadata">

### Author: ![banesullivan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/banesullivan/32/7143_2.png) [@banesullivan](https://discourse.vtk.org/u/banesullivan)
#### Post date: [September 3, 2019, 8:18pm UTC](https://discourse.vtk.org/t/attribute-error-in-getting-dimensions-of-list-to-write-to-a-csv/1648/2 "2019-09-03T20:18:19Z")

</div>

It appears the code you shared is part of a larger project that uses VTK but isn’t VTK - there is likely little we can do to help debug this without having the full context of the software you are using.

The best help I can provide is that PolyData objects do not have dimensions, only gridded datasets like StructuredGrids or ImageData have this. If this snippet is from another open-source project, I’d recommend opening an issue with that project or linking us to that project.

We’d need a lot more information about the function that is supposed to `return list(self.vtsData.GetDimensions())`
