Insert (place) the created elements into the wall

Insert (place) the created elements into the wall

Anonymous
Not applicable
850 Views
4 Replies
Message 1 of 5

Insert (place) the created elements into the wall

Anonymous
Not applicable

Hello,
I have a question about how to insert (or place) components that have already been created into walls in different directions.


As shown below, I have completed the studs of each wall architecture and I want to move studs into the wall.
S_1.jpg

I am trying to make studs a group using the NewsGroup API. Then, match the coordinates of the group to the wall. But this method needs to add a lot of rules to match the coordinate information of each wall.

 

Does anyone have a similar problem or a better solution?


Thanks

0 Likes
Accepted solutions (1)
851 Views
4 Replies
Replies (4)
Message 2 of 5

jeremytammik
Autodesk
Autodesk

Is this a Revit API issue, or an end user question?

 

Are you doing anything programmatically yourself, or just using the standard Revit user interface?

 

If you are not doing anything programmatically, this is not the best place to ask such a question.

 

Please note that this discussion forum is dedicated to programming Revit using the Revit API.

 

Therefore, you cannot expect an answer to a question such as yours relating to installation, product usage or end user support issues here.

 

You should try one of the non-API Revit product support discussion forums instead for that:

 

https://forums.autodesk.com/t5/revit-api-forum/this-forum-is-for-revit-api-programming-questions-not...

 

The people there are much better equipped to answer your question than us programming nerds.

 

If you are doing it programmatically, please be aware that the Revit API hardly ever supports any functionality that is not also available in the user interface.

 

Therefore, if the UI does not support this, the API will probably not do so either.

 

So, it will always help to research the optimal manual approach to a solution first, before attacking the task programmatically.

 

I hope this clarifies.

 

Thank you for your cooperation and understanding.

 

Best regards,

 

Jeremy

 



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

Message 3 of 5

Anonymous
Not applicable
Accepted solution

I'm sorry that the question I asked here may not be clear and is not suitable.
In the UI, I use the "moving" , "rotating" and "group" methods to achieve visual effects.
So I want to try to achieve it through programming.


Thank you for your notification and reminder.
I apologize again for my negligence. 

0 Likes
Message 4 of 5

jeremytammik
Autodesk
Autodesk

If you wish to achieve this programmatically, this is absolutely the right place to ask!

 

First of all, you need to understand the basics of the Revit API context and architecture.

 

That is achieved most efficiently by working through the getting started material:

 

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

 

Once you have the basic hang of things, it is time to research how to achieve your specific task.

 

The first and most important step is to know exactly what you want to achieve and how to achieve it manually in the user interface.

 

You have that already, so that is great. Congratulations!

 

Next, research how to automate the task via the API.

 

Mainly, you can use RevitLookup to explore the resulting model and analyse the differences before and after.

 

Here are more details on researching how to address a Revit API programming task:

 

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

 

Good luck and have fun!

 



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

Message 5 of 5

Anonymous
Not applicable

Thank you for providing so many learning materials.
I hope that I can learn the Revit API efficiently through these learning resources.
So far, I have finished grouping the elements by code, and then I will try to implement other functions.

Thank you.

0 Likes