Taming the Wild BOM: Why You Need a PLM System to Corral Your Data
Learn why you need a PLM system to help corral your data in our latest blog.
If you are a manufacturer working with customers in construction it’s often a requirement to provide product models in a BIM compatible format, commonly a Revit format.
Inventor 2021 gives us the option to work with Revit data and share data to Revit. We can share data directly from the Inventor BIM Content Environment.
When we export we can save out to rfa format, however, there is no option to choose which Revit version we are saving out as.
If your client is using an earlier Revit version this can be a problem.
There is though a method you can follow to set up your system to be able to export out to an earlier version, up to three versions earlier than your current version.
In this blog article, we will provide you with the required setup steps and an iLogic rule that will access this undocumented feature.
Installation Requirements
e.g. copy from Autodesk_Navisworks_Manage_2021_Multilingual_Win_64bit_dlm\x64\NAVMAN\Autodesk\Ldr\IVS\Bin
to
C:\Program Files\Common Files\Autodesk Shared\Revit Interoperability for Inventor 2018\Rx\
iLogic Rule
You will require an iLogic rule to access the custom export functionality.
Create this as an external rule.
Dim oBIMComp As BIMComponent
Dim selectedTemplate As String
Dim targetFile As String
oBIMComp = ThisApplication.ActiveDocument.ComponentDefinition.BIMComponent
Dim templateFileDlg As Inventor.FileDialog = Nothing
InventorVb.Application.CreateFileDialog(tFileDlg)
templateFileDlg.DialogTitle() = "Select Template for Export"
templateFileDlg.Filter = "Revit Family Template (*.rft)|*.rft"
templateFileDlg.InitialDirectory = "C:\ProgramData\Autodesk\RVT 2018\Family Templates\English"
templateFileDlg.CancelError = True
On Error Resume Next
templateFileDlg.ShowOpen()
If Err.Number <> 0 Then
Return
ElseIf templateFileDlg.FileName <> "" Then
selectedTemplate = templateFileDlg.FileName
End If
Dim oNameValueMap As NameValueMap
oNameValueMap = ThisApplication.TransientObjects.CreateNameValueMap
oNameValueMap.Add("CustomRevitFamilyTemplate", selectedTemplate)
oNameValueMap.Add("RevitFileVersion", "Legacy")
Dim oFileDlg As Inventor.FileDialog = Nothing
InventorVb.Application.CreateFileDialog(oFileDlg)
oFileDlg.Filter = "Revit Family Files (*.rfa)|*.rfa"
oFileDlg.InitialDirectory = ThisDoc.Path
oFileDlg.CancelError = True
'On Error Resume Next
oFileDlg.ShowSave()
If Err.Number <> 0 Then
Return
ElseIf oFileDlg.FileName <> "" Then
targetFile = oFileDlg.FileName
End If
oBIMComp.ExportBuildingComponentWithOptions(targetFile, oNameValueMap)
MessageBox.Show("Export to " & targetFile & " finished.", "RFA Export Rule Complete")
Learn why you need a PLM system to help corral your data in our latest blog.
Learn about BIM to GIS Collaboration Patterns Between Owners, AEC Firms, and Municipalities in our most recent blog post.
Learn about the Dynamic Duo of Water Infrastructure Management through Autodesk’s InfoWater Pro and Esri ArcGIS in our most recent blog post.