Revit export to .NWC using Navisworks Export 2023 includes Family and Type data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good day,
We are working with .dwfx files in order to read element properties in the Cost-X application. In order to create these files the process that we use is exporting .RVT > .NWC > .DWFX through the use of Navisworks Manage 2023. A change that we've noticed in the upgrade from 2021 to 2023 is that each .NWC export includes the Family and Type data. See the difference in the two images I have added to this post. This is data that is clashing with the data structure that we use in Cost-X. So we would like to exclude this from the .NWC export.
Checking the API of NavisworksExportOptions for both 2021 and 2023 shows that there has not been any change to its members or properties. I have tried using different ConvertElementProperties and Parameters settings, but this is without luck so far.
We are using:
Revit 2023
Navisworks Manage 2023
Does anyone else have experience with this?
Current export settings Navisworks in Python:
# Boilerplate
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference('RevitServices')
from RevitServices.Persistence import DocumentManager
import System
from System.Collections.Generic import *
doc = DocumentManager.Instance.CurrentDBDocument
# Dynamo input
folder = IN[0]
names = IN[1]
# Define the Navisworks Export settings
collector = FilteredElementCollector(doc).OfClass(View)
options = NavisworksExportOptions()
options.ExportScope = NavisworksExportScope.View
options.ExportLinks = False
options.ExportParts = True
options.DivideFileIntoLevels = False
options.FacetingFactor = 0.1
OUT = []
# get Workset name, read ThreeD views in Revit that align with that name
if IN[2]:
for i in names:
viewstring = i.Name
OUT.append(viewstring)
for view in collector:
if (view.ViewType == ViewType.ThreeD and viewstring in view.Name):
# prefix name with _ZJA and export to a .nwc file in folder
options.ViewId = view.Id
options.ExportRoomGeometry = False
options.ExportParts = True
options.ExportLinks = True
options.ExportRoomAsAttribute = False
options.FacetingFactor = 0.1
name = view.Name
options.Coordinates = NavisworksCoordinates.Internal
doc.Export(folder, name + "_Internal_ZJA" + ".nwc", options)