0

Search method always return empty objects with Navisworks file but it works with Revit file. Here is the sample code which works with revit file but doesn't work with navisworks file.

viewer.search('Levels', function(dbIds){ console.log(dbIds); }, null, ['Type'])

Please let me know if you have a solution for .nwd file

sushilprj
  • 2,203
  • 1
  • 14
  • 19
  • It is probably because no component is matching the search. Navisworks and Revit file hierarchy and properties are different after extraction on Forge. The viewer.search method is looking for component property values that are matching your search, did you make sure that any component have the property value you are looking for? Did you test with another value that you know belongs to at least one component? – Felipe Jan 23 '18 at 13:31
  • @PhilippeLeefsma, I tried with few properties but couldn't get desire result. – sushilprj Jan 23 '18 at 14:28
  • adding to this, in this case you're searching for `Levels` on the `Type` attribute, is that available on your Navisworks file? Note that each NW file can have different attributes depending on which files were used to create it. – Augusto Goncalves Mar 29 '18 at 18:12
  • Yes @AugustoGoncalves, I have verified the properties using meta data api. – sushilprj Mar 30 '18 at 06:40

0 Answers0