HELP: How can get of a Beam element their "Level" and "Upper Level"

HELP: How can get of a Beam element their "Level" and "Upper Level"

Anonymous
Not applicable
489 Views
2 Replies
Message 1 of 3

HELP: How can get of a Beam element their "Level" and "Upper Level"

Anonymous
Not applicable

Hello:

 

I am trying get the ELEVATION (double value) the Beam element. I'm going to subtract values the Upper Elevation and Elevation the element for getting height the void space. For example = Level 4 - Level 0 = 4 meters.

 

See image:

 

calculate_height_elements_2.png

 

Thanks.

 

David

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

jeremytammik
Autodesk
Autodesk

Dear David,

 

You could use the ReferenceIntersector to achieve this:

 

http://thebuildingcoder.typepad.com/blog/2014/09/a-couple-of-recent-issues.html#4

 

In fact, the SDK sample MeasureHeight does almost exactly what you are asking for.

 

It was introduced in the Revit 2011 API and originally provided via the FindReferencesByDirection method.

 

The example later published as the MeasureHeight SDK sample is described in FindReferencesByDirection > Measure distances > Example: Measure Distance with FindReferencesByDirection.

 

Cheers,

 

Jeremy



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

Message 3 of 3

Anonymous
Not applicable

Hello Jeremy:


Thanks very much for your information.


I go a revise the links. I definitely shall have many doubts later.


Regards,


Davidd

0 Likes