I'm a beginner at programming with C#. I am trying to create a command that will total lengths of pipes in Revit MEP 2012. Let me explain what I would like it to do:
The user will select a group of pipes. The "Length" parameters will be extracted for each of the pipes selected. They will then be combined to show to total length of the pipe(s) selected.
At some point I'd like the to be totaled by pipe size, then by length per pipe size, but I want to figure that out on my own. Can someone point me in the right direction or help me get started?
Dear RG-ClearyZ,
Have a look at
http://thebuildingcoder.typepad.com/blog/2011/10/retrieving-duct-and-pipe-endpoints.html
Before you start, though, I would recommend working through the DevTV and other introductory material:
http://thebuildingcoder.typepad.com/blog/2011/10/getting-started-with-the-revit-2012-api.html
Best regards,
--
Jeremy Tammik
Autodesk Developer Network -- http://www.autodesk.com/joinadn
The Building Coder -- http://thebuildingcoder.typepad.com