Creating a Building Section programmatically

Creating a Building Section programmatically

joaofmoco
Advocate Advocate
1,261 Views
3 Replies
Message 1 of 4

Creating a Building Section programmatically

joaofmoco
Advocate
Advocate

Hello everyone,

 

Thank you for taking some time to read my question.

I have been wanting to create a building section view from the default "Level 1" floor plan and I am confused at what type of view I should create. I have read a lot of information online and it's still unclear to me what I should do.

 

Links I visited:

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

https://help.autodesk.com/view/RVT/2020/ENU/?guid=Revit_API_Revit_API_Developers_Guide_Basic_Interac...

https://www.revitapidocs.com/2020.1/fcc75682-bd99-a97d-5a4d-0f8eb9e92ab5.htm

 

Should I create a Reference View or a normal Section View? What should I do?

 

I leave images (in order) exemplifying what I want to do using the Revit API.

 

Any feedback would be appreciated 🙂

0 Likes
Accepted solutions (1)
1,262 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni
Accepted solution

Dear Joao,

 

First of all, it will help if you know exactly the optimal workflow and best practices to achieve the desired result manually in the end user interface. Then, you can analyse the resulting BIM using RevitLookup and other tools. That will tell you exactly what you need to achieve in terms of database structure, elements, view types, their relationships and properties. Once that is clear, the programming side of things will easily fall into place. This is the standard approach to research how to address a Revit API programming task:

 

https://thebuildingcoder.typepad.com/blog/2017/01/virtues-of-reproduction-research-mep-settings-onto...

  

Here are some discussions on how to creating and setting up section views:

  

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

  

I hope this helps.

 

Cheers,

  

Jeremy

  

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

joaofmoco
Advocate
Advocate

Hello Jeremy and thank you for your reply,

 

I have read the material you have made available and, although I now have a clear idea of what to do, I don't really know how to do it in C#.

Meaning, your posts about these topics have helped me understand what I need to do but I can't really understand the VB.NET code you have shown on the link you provided.

 

Kind regards,

 

João Moço

0 Likes
Message 4 of 4

joaofmoco
Advocate
Advocate

After some time messing around with this, I have figured it out with the documentation provided by Jeremy.

 

Thank you

0 Likes