How do I OOP in Revit API?

How do I OOP in Revit API?

XARMA
Advocate Advocate
274 Views
2 Replies
Message 1 of 3

How do I OOP in Revit API?

XARMA
Advocate
Advocate

I make a simple test add-in.

It just appear a window that is made by xaml file.

And I have wanted to add some function(Picking Object and window get element ID and appear  that).

I can make some code in Command Class but, I want to learn about using other class.

so I added another class for Picking Object, But How do I write the codes?

Have I to use IExternalCommand or Result Execute? and Where can I get more information about something like that?

 

XARMA_0-1745462375873.png

 

0 Likes
Accepted solutions (1)
275 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni
Accepted solution

To learn OOP, you need to read some basic introductions to the topic. The Revit API is not the best place to start, I'm afraid. Here are some suggestions by Gemini:

   

   

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

XARMA
Advocate
Advocate

Thank you for your advice

0 Likes