Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

List all properties like "Find Items"

xaotix
Contributor

List all properties like "Find Items"

xaotix
Contributor
Contributor

Is there a way to list all Categories, Properties and Values like we see in "Find Items" feature?

0 Likes
Reply
110 Views
1 Reply
Reply (1)

ulski1
Collaborator
Collaborator

The way I have done this is by searching for the values using the Search object. First, I perform a search that returns an IEnumerable<ModelItem>. Then, for each model item in the collection, I examine the PropertyCategoryCollection and add new values to a hash set. Note that for large models, this method is quite slow. I haven't checked if newer versions of the Navisworks API provide a faster way to retrieve the properties.

 

br

Ulrik

0 Likes