Retrieve dimensions of a plumbing fixture (for instance a bathtube) in C#

Retrieve dimensions of a plumbing fixture (for instance a bathtube) in C#

hauvillec
Explorer Explorer
325 Views
2 Replies
Message 1 of 3

Retrieve dimensions of a plumbing fixture (for instance a bathtube) in C#

hauvillec
Explorer
Explorer

Hello everyone ! 

Does anyone knows how to retrieve the length and the width of a plumbing fixture such as a bathtub or a shower tray ? I know how to do this for doors, windows etc.... but not for this case.

Thanks in advance ! (it's quite urgent 😉

0 Likes
326 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni

There are many possible ways to achieve this, so I cannot address all of them off-hand.

 

The best way for you to discover the optimal solution for yourself is to use RevitLookup to explore your model, the plumbing element, its properties and parameters.

 

If you are in luck, the required values are family parameters, either on the family type or the family instance, and you can simply grab them from there.

 

A more complex approach is to determine the width and length from the fixture element geometry. Depending on the quality of the family definition, this approach may be more reliable, because it really represents the true model geometry.

 

I hope this helps.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 3

hauvillec
Explorer
Explorer

Thans for your response ! 

Unfortunatly I can't see any dimension info with Revit Lookup...

0 Likes