Handling Unknown Data Properties in Navisworks
When starting Navisworks development, you might encounter situations where DataProperty values appear as “unknown”. This scenario isn’t an error but rather a property type that requires specific handling in the code. The API provides separate conversion methods to retrieve the correct property values.

As shown in the image above, calling ToString() directly on a wall property in the code results in “unknown”. This is because the specific conversion method wasn’t used. By using the following code to check and convert each value individually, all values can be retrieved correctly.
In Navisworks, there are also cases involving conversion factors between inches and millimeters, which require further processing.
1 | var stringBuilder = new StringBuilder(); |

All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.




