Printing the Names of Elements Located Above a Foundation

Printing the Names of Elements Located Above a Foundation

husam_al-jawhar
Enthusiast Enthusiast
586 Views
7 Replies
Message 1 of 8

Printing the Names of Elements Located Above a Foundation

husam_al-jawhar
Enthusiast
Enthusiast

Hi there,

I am writing to inquire about  if I have a foundation in my Revit 2023 project and I want to print the name of the element which located up this foundation , such as the column name and structural connection name. how can i do that in python.

Cheers,

 

 

0 Likes
587 Views
7 Replies
Replies (7)
Message 2 of 8

jeremy_tammik
Alumni
Alumni

You can use the reference intersector for this purpose. Check out the respective SDK samples, especially MeasureHeight. There are two more. They are listed in SamplesReadMe.htm, erroneously referring to FindReferencesWithContextByDirection instead of ReferenceIntersector:

  

https://www.revitapidocs.com/2023/36f82b40-1065-2305-e260-18fc618e756f.htm

  

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

husam_al-jawhar
Enthusiast
Enthusiast
Hi Jeremy,
Many thanks for your answer.
How can I reach to SamplesReadMe.htm?
Best,
Message 4 of 8

jeremy_tammik
Alumni
Alumni

Dear Husam, simply install the Revit SDK and look in the Samples directory. Best regards, Jeremy

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 5 of 8

husam_al-jawhar
Enthusiast
Enthusiast
Hi Jeremy,
I have installed the Revit SDK, but I'm having trouble adding the SDK tools to Revit. I can't seem to find the 'External Tools' option under the Add-Ins or Manage menu. I'm currently using the Revit 2023 student version and would appreciate any ideas or suggestions.
Thank you
Message 6 of 8

jeremy_tammik
Alumni
Alumni

I suggest you learn how to install a single add-in. In summary, it is very simple. Just copy the add-in manifest and the .NET assembly DLL into the Revit add-ins folder:

  

https://thebuildingcoder.typepad.com/blog/about-the-author.html#2

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 7 of 8

husam_al-jawhar
Enthusiast
Enthusiast
I will do that. Many thanks
Message 8 of 8

moturi.magati.george
Autodesk
Autodesk

Hi @husam_al-jawhar,

 

In addition to what jeremy has said about installing an addin. You can read more about it in my first Revit plugin https://www.autodesk.com/support/technical/article/caas/tsarticles/ts/7JiiE4UoWHaTjxzuF754mL.html

 

  Moturi George,     Developer Advocacy and Support,  ADN Open