Sharing Inventor 2021 data to earlier version Revit rfa

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.

Sharing Inventor 2021 data to earlier version Revit rfa

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

  1. Install the matching Inventor legacy version. This can be up to three versions behind the latest release so currently 2018.
  2. Install the latest Inventor version, currently 2021.
  3. Obtain the latest version of Navisworks media. Copy RFATranslator.Translate.RevitServerLegacy.exe from Navisworks install files to legacy Inventor version Revit interoperability folder.

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\

 

  1. You can Install the Revit legacy version to check your exported models and also gain access to the Revit templates. If you don’t have a Revit license you can run it in view-only mode. If you need to make any post export modifications you will require a Revit license to make any changes to the exported file in Revit.

 

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")

 

Blog

The Complete Autodesk Software List - All 112 Autodesk Products in one list

30 September 2024

Have you ever wondered how many product titles Autodesk has in its design software portfolio? Well its 112 at this point in time, but with the continuous acquisitions this number is ever increasing. The design, Digital Prototyping, Building information modelling (BIM) etc……. tools created by Autodesk cover  multiple industry sectors and are used by over 10 million users in more than 185 countries. That’s pretty incredible!

Learn more