Skip to content

How can I query for properties of objects in a Revit file? #94

Answered by grigasp
barhamd asked this question in General
Discussion options

You must be logged in to vote

Using ECSQL for getting all properties of an element is really not an option, because majority of the properties are usually located on related element aspects, types, etc.. To simplify getting iModel data in a user and developer -friendly way we suggest using the Presentation API which looks up for all the related properties for you.

You can find an example of how to use the API directly here - have a look at the listElementProperties method. Note that the example is for backend code, but the API on the frontend is nearly identical.

I also checked the simple-viewer-app and was able to reproduce the issue you're seeing. It's caused by the Table component in the app - if you comment-out the

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mgooding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants