Export xyz coordinates of structural layer of walls to xml format.

Export xyz coordinates of structural layer of walls to xml format.

Anonymous
Not applicable
859 Views
3 Replies
Message 1 of 4

Export xyz coordinates of structural layer of walls to xml format.

Anonymous
Not applicable

Hello Everyone, I'm very new to the Revit API so I'm looking for some direction. I am trying to export the coordinates of the structural layer of all wall types in Revit to an excel file format. I want to repopulate this structural layer into another platform. What would be the best way to do this ? Do I use Wireframe Builder for this Or do I just use Snoop to direct me to the correct linecurve parameters ?

 

Any direction would be helpful.

 

Cheers

 

Darren 

 

 

0 Likes
860 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

Dear Darren,

 

Thank you for your query.

 

Good to hear that you are aware of Snoop and thus RevitLookup.

 

I assume you have worked through the getting started material?

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#2

 

Here is a quite complete sample demonstrating how to access everything you need to know about accessing detailed wall layer geometry:

 

http://thebuildingcoder.typepad.com/blog/2011/10/retrieving-detailed-wall-layer-geometry.html

 

It should be trivial to adapt that to export the XYZ coordinates you are after.

 

Various Revit SDK samples export data directly to Excel spreadsheets, and so do some of the ADN Xtra labs, so you can grab some code from there:

 

https://github.com/jeremytammik/AdnRevitApiLabsXtra/blob/master/XtraCs/Labs4.cs

 

I hope this helps.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 4

Anonymous
Not applicable

Hey Jeremy,

 

We have been looking at the links you gave us, and have been playing around with the cmdGeometrypartsanalyzer. We cannot get the example to build because it was written in an old version. Is there any place we can download a 2017 version of this so it will build with Revit 2017 ? 

 

Also, we've been trying to write this in vb and we are getting this error when using the locationcurve. 

 

Is there another way we should be retrieving this information ?

 

Thanks for the Help  

 

 

 

2016-05-23_1148.png

0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk

The most up-to-date version of The Building Coder samples is always available on GitHub:

 

https://github.com/jeremytammik/the_building_coder_samples



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes