Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Elevation of family instance from floor or level below it

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
kailashnkute
2180 Views, 6 Replies

Elevation of family instance from floor or level below it

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

Tags (1)
6 REPLIES 6
Message 2 of 7
kailashnkute
in reply to: kailashnkute

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

Tags (1)
Message 3 of 7
jeremytammik
in reply to: kailashnkute

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
kailashnkute
in reply to: jeremytammik

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

Tags (1)
Message 5 of 7
jeremytammik
in reply to: kailashnkute

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

Message 6 of 7
nawanipp
in reply to: jeremytammik

Dear @jeremytammik ,

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

Message 7 of 7
jeremytammik
in reply to: nawanipp

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community