Using data from excel to draw in revit via a macro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to export data (such as elements geometry and location) from excel to revit and then use this data to draw up a basic structure, within a single macro (using V.B.Net language). I cant figure out how to get the data into the macro as well as how to use this data to draw objects such as wall. Is even possible to do?
Assuming I can get the data into the Revit macro, i was then thinking that I would use it to draw each element by:
- first defining where each corner of each element is e.g. dim point1 As New XYZ(data from excel)
- draw a line between this points e.g. Dim line1 As line = line.createbound(point1, point2)
-turn the line into a wall
But turning the line into a wall doesn't seem to be working, is there away of simply creating a wall based of there x,y,z coordinates from a datum?