How to write an object to a file or window to view the object

M1k3y2014
Advocate

How to write an object to a file or window to view the object

M1k3y2014
Advocate
Advocate

Hi, a very beginners question:

 

With the following code I try to get all pipes in the document (got the code from the pdf guide that I found - "Revit 2014 API developer guide")

 

    Document document = this.ActiveUIDocument.Document;
    FilteredElementCollector collector = new FilteredElementCollector(document);
    
    collector.OfClass(typeof(Autodesk.Revit.DB.Plumbing.Pipe));

 

Now I'd like to view this data in "collector" to see what it looks like and what I've got, but don't manage to figure it out.

0 Likes
Reply
Accepted solutions (1)
467 Views
2 Replies
Replies (2)

jeremytammik
Autodesk
Autodesk
Accepted solution

Hi, and welcome to Revit API programming!

 

I suggest that you first of all take a look at the getting started material and work through the step-by-step instructions provided by the DevTV and My First Revit Plugin video tutorials:

 

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

 

That will show you what other important material is available that you MUST be aware of, answer this question of yours, and many, many more besides.

 

Good luck and have fun!

 

Jeremy



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

M1k3y2014
Advocate
Advocate

Hi Jeremy. Thanks, I will do 🙂

0 Likes