gtalarico / revitapidocs

Online Revit API Documentation: 2015, 2016, 2017, 2017.1, 2018
http://www.revitapidocs.com
33 stars 20 forks source link

Show return type for methods and properties on Members page #138

Open onomou opened 2 years ago

onomou commented 2 years ago

I think it would be very helpful to see what is returned without having to click on a method or property.

For example, the Element Members page lists methods such as ArePhasesModifiable with Public method icon and Description. Only after clicking on the method link can one see under Syntax that it returns a bool.

public [bool] ArePhasesModifiable()

Same with properties, such as AssemblyInstanceId. Under Syntax it shows that it is an ElementId.

public [ElementId] AssemblyInstanceId { get; }

Having that information available in the members page would save so many clicks:

Icon Returns Name Description
Public method bool ArePhasesModifiable Returns true if the properties CreatedPhaseId and DemolishedPhaseId can be modified for this Element.
...
Public property ElementId AssemblyInstanceId The id of the assembly instance to which the element belongs.
...
gtalarico commented 2 years ago

That would be great @onomou revitapidocs mostly simply renders the documentation generated by autodesk revit developers (@jeremytammik) so this change would need to be done by then. It wouldn't be impossible to crawl documents to fetch types from deeper pages and then re-write the parent table, but that's not something I would consider since it could introduce errors and would require a lot of work.

jeremytammik commented 2 years ago

Thank you for the suggestion! I asked the Revit development team for you.