Learn how to use the library in programming python RevitAPI

Question 1: How can know the tools in revit located at any position in the packet RevitAPI?

Question 2: How to convert C # to python ?

My English is not good so I’m very grateful if you could show me that it works diagram and you can guide me the documents that I can solve this question.
Thanks everyone. :slight_smile:

1 Like

Answer 1: There is no clear correlation between what things are named in the UI and what they are called in the API. UI was created for the end user and was meant to be a little more user friendly, organized and easily navigable. API was written for developers. You can usually find what you need and what things are named by using the Revit Lookup Tool from Jeremy Tammik.

Answer 2: That’s another thing that kind of comes naturally to you as you attain more knowledge with computer programming. Some things are easily translatable since they are exactly the same in both languages but then there are things that require a little bit more advanced knowledge ex: how to use methods with “out” variables or create typed collections for certain methods that won’t accept anything else. There are online services like this: http://codeconverter.sharpdevelop.net/SnippetConverter.aspx that attemp to do that conversion for you, but trust me, if you are using this for anythin other than a quick transaltion so that you don’t have to retype something you are missing an opportunity to actually learn about the things that you are doing, and instead just blatantly copying someone else’s work.



Thank you for this good advice. I will treat it as an initial platform to continue learning it.
:thư giãn: