Is there any way to quickly find all methods that return a specific class?

Is there any way to quickly find all methods that return a specific class?

ABertzouanis9F98Y
Enthusiast Enthusiast
457 Views
3 Replies
Message 1 of 4

Is there any way to quickly find all methods that return a specific class?

ABertzouanis9F98Y
Enthusiast
Enthusiast

How do I search for methods that return a specific class?

 

For instance I am seeking the methods that output a reference. If I search by reference, documentation searches only for methods that have reference as an argument. Is there any way to quickly find all methods that return a reference?  

 

Reference.PNG

0 Likes
458 Views
3 Replies
Replies (3)
Message 2 of 4

ABertzouanis9F98Y
Enthusiast
Enthusiast

Just to be clear, I am not searching for the properties (as the image below) but I am searching for the methods.

Reference2.PNG

0 Likes
Message 3 of 4

RPTHOMAS108
Mentor
Mentor

Using system.reflection?

 

MemberInfo:

MethodInfo.ReturnType

PropertyInfo.PropertyType

 

The site you note and the RevitAPI.chm are built on information from RevitAPI.xml and RevitAPIUI.xml files (documentation extracted from source code comments). There is no clear return type noted in those (field of type) so wouldn't expect to find what you seek.

0 Likes
Message 4 of 4

joshua.lumley
Advocate
Advocate

Just search api docs for "getreference".....22 results.

0 Likes