Elevation of family instance from floor or level below it

Elevation of family instance from floor or level below it

Anonymous
Not applicable
2,728 Views
6 Replies
Message 1 of 7

Elevation of family instance from floor or level below it

Anonymous
Not applicable

Hi All,

 

Greetings for the day,

 

i want to calculate the Elevation (distance) of selected family instance with respect to Floor or Level below it,

How to get the floor or level which is below the selected family instance.if at all i get it how to get the elevation of it with respet to that level.

 

Thanks in adavance

Regards

Kailash Kute

0 Likes
Accepted solutions (1)
2,729 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable

Hi All,

 

After going through the link

 

http://help.autodesk.com/view/RVT/2014/CSY/?guid=GUID-B3EE488D-2287-49A2-A772-C7164B84A648

 

i find out answer to my question i have posted, But the answer is valid only if i have my below element as Floor.

 

If i have Level as my below element then the ray passed doesnt give me any distance (proximity),

 

now my question gets filtered here, that is How to find Intersection with Level?

 

Regards

Kailash Kute

0 Likes
Message 3 of 7

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Kailash Kute,

 

If all you need is the discance between the faily instance and the level, I see a possibility for a MUCH easier approach:

 

Ask the family instance for its bounding box and determine its bottom Z coordinate Z1.

 

Determine the elevation Z0  of the level.

 

The distance you seek is Z1 - Z0.

 

I hope this helps.

 

Cheers,

 

Jeremy

 



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

Message 4 of 7

Anonymous
Not applicable

Thanks jeremy Sir,

 

a little bit of work around with points got from bounding box and done,

 

wow really a MUCH easier approach.

 

Regards

Kailash Kute

0 Likes
Message 5 of 7

jeremytammik
Autodesk
Autodesk

Dear Kailash,

 

Thank you for your appreciation and confirmation.

 

I published an edited version of the important points now:

 

http://thebuildingcoder.typepad.com/blog/2016/03/index-reloading-curves-distance-and-deleting-prints...

 

Cheers, 

 

Jeremy



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

0 Likes
Message 6 of 7

Anonymous
Not applicable

Dear @jeremytammik ,

Can you please explain, how can i get elevation Z0 of the level?

0 Likes
Message 7 of 7

jeremytammik
Autodesk
Autodesk

Look at the Level class members, and search for elevation:

 

https://www.revitapidocs.com/2020/42715128-e45b-1c56-25fa-84a0855a3012.htm

 



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

0 Likes