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: 

Wall: attach top/base, no API?

19 REPLIES 19
SOLVED
Reply
Message 1 of 20
Anonymous
4351 Views, 19 Replies

Wall: attach top/base, no API?

I searched around with no luck. So,  to create a gable wall, the only way is to work out the profile and vertices? 

Thanks in advance.

Tags (2)
19 REPLIES 19
Message 2 of 20
jeremytammik
in reply to: Anonymous

Dear Paper Plane,

 

Does this help?

 

http://thebuildingcoder.typepad.com/blog/2011/07/create-gable-wall.html

 

Please note that the sample external command CmdCreateGableWall discussed there is included in The Building Coder samples:

 

https://github.com/jeremytammik/the_building_coder_samples

 

It is therefore continously maintained and has been updated for more recent versions of Revit.

 

Cheers,

 

Jeremy



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

Message 3 of 20
Anonymous
in reply to: jeremytammik

Thank you Jeremy. 

 

I had thought there was a way like this:

First, ignore the detail of the wall profile, only create a rectangle wall;

Then, get IDs of the wall and a roof, attach these two using API. 

 

Apparently it doesn't work this way.

 

Message 4 of 20
jeremytammik
in reply to: Anonymous

Afaik, the top and bottom restriction of a wall can very well be specified by simply supplying an element id each.

 

However, afaik, these element ids must specify level elements, and these are resticted to being horizontal.

 

Ergo, no way to use these to specify a non-rectangular wall elevation profile.

 

Capisci?

 

Ciao,

 

Jeremy



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

Message 5 of 20
Anonymous
in reply to: jeremytammik

Thanks!!
Message 6 of 20

Hi Jeremy,

The original poster and I are not trying to attach the wall to a level. We want to use the API to do what the UI allows which is attach the top and bottom of the wall to multiple elements such as a roof or floor. This can be seen in the UI in this video. http://autode.sk/1Q6e5oT

Because it seems like this is not possible with the API, could you please file a request with the development team?

Thank you
Harry
Message 7 of 20

Dear Harry,

 

Thank you for clarifying and adding your request.

 

I added both your and Paper_Plane's requests to the existing wish list item CF-180 [need to expose the "Attach Top/base" with API].

 

Please make a note of this number for future reference.

 

You are welcome to request an update on the status of this issue or to provide us with additional information at any time by submitting a new case quoting the wish list item number or this one.

 

Please also provide a business case to raise its priority:

 

This issue is important to me. What can I do to help?

 

This issue needs to be assessed by our engineering team, and prioritised against all of the other outstanding change requests. Any information that you can provide to influence this assessment will help. Please provide the following where possible:

 

  • Impact on your application and/or your development.
  • The number of users affected.
  • The potential revenue impact to you.
  • The potential revenue impact to Autodesk.
  • Realistic timescale over which a fix would help you.
  • In the case of a request for a new feature or a feature enhancement, please also provide detailed Use cases for the workflows that this change would address.

 

This information is extremely important. Our engineering team have limited resources, and so must focus their efforts on the highest impact items. We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.

 

I hope this helps.

 

Cheers,

 

Jeremy



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

Message 8 of 20
Anonymous
in reply to: jeremytammik

Hi Jeremy

 

I am searching about the same feature in API

Is it existing now or not yet ???

 

Thank you

Message 9 of 20
jeremytammik
in reply to: Anonymous

Dear Mahmoud,

 

I added a note of your request to the wish list item.

 

Please provide your company details and a business case for it from your point of view as well.

 

Thank you!

 

Cheers,

 

Jeremy



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

Message 10 of 20
Anonymous
in reply to: jeremytammik

I want to be able to create curved gable walls  by creating curved walls and attaching top to the upper roof.

 

Thank you

Message 11 of 20
boostyourbim
in reply to: jeremytammik

Message 12 of 20

Any updates on this?

So far it doesnt seem to be included within the 2020 API as far as i can see.

Attach Wall top to an element (not level) as you can do in the revit UI

Message 13 of 20

Thank you for your vote! Not much more we can do about it right now, I'm afraid. Vote, vote, vote. Good luck!

  



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

Message 14 of 20
a.bejenaru
in reply to: jeremytammik

For now the only thing we can do is delete and recreate floors in my case. 

Hope the development team reckons this issues soon.

Message 15 of 20
lucas-gsbp
in reply to: Anonymous

One more vote!

Message 16 of 20
Anonymous
in reply to: jeremytammik

Please can you send to me video how can install building code sample and when can i find the API for attach top and bottom wall to floor ?
Thanks in advanced
Message 17 of 20
Anonymous
in reply to: Anonymous

Please if anyone solve this problem, can send it to me because i need it urgent attach walls to top and bottom floor 

Message 18 of 20
jeremy_tammik
in reply to: Anonymous

That is easy. Take a look at the ADN Xtra labs sample to create a little house, Lab2_0_CreateLittleHouse:

 

https://github.com/jeremytammik/AdnRevitApiLabsXtra/blob/master/XtraCs/Labs2.cs#L42-L427

  

It creates four walls and attaches them to the bottom and top levels just as you request.

  

Jeremy Tammik, Developer Advocacy and Support, The Building Coder, Autodesk Developer Network, ADN Open
Message 19 of 20
Anonymous
in reply to: jeremy_tammik

IMG-20211106-WA0011.jpg

 how can i solve this errors?

Message 20 of 20
jeremy_tammik
in reply to: Anonymous

Impossible to say with zero information. 

 

I would suggest working through the getting started material first of all to get a solid understanding of the basics of the Revit API and add-in architecture and then moving forward from there:

 

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

  

 

Jeremy Tammik, Developer Advocacy and Support, The Building Coder, Autodesk Developer Network, ADN Open

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

Post to forums  

Autodesk Customer Advisory Groups


Rail Community