Search code examples
autodesk-forgeautodesk-viewerautodesk-model-derivative

Element properties for nwd files in Autodesk Forge


When I query element properties in Autodesk forge for a model that is based on NWD file, I only get small set of the element properties than what I see in NavisWorks Manage. On the other hand, when I query the properties for models based on Revit rvt files, I can see all the properties. Is there anyway to get the full properties for nwd files? Just to clarify, I am asking about properties that are already in the NWD file and I can see it in Navisworks. Thanks in advance


Solution

  • You can set viewer selection mode by

    viewer.setSelectionMode(Autodesk.Viewing.SelectionMode.FIRST_OBJECT)

    and then you can get the properties you want.

    There are 3 different type: FIRST_OBJECT, LAST_OBJECT, LEAF_OBJECT. the default is LEAF_OBJECT .