Someone recently marked my reply as helpful...but that reply was several years ago.
If you want to publish a Revit model to AGOL today, there is a much better way! Within ArcGIS Pro, you can add the Revit model into your map as a Building Layer. And from that, you can create the rich Building Scene Layer. For more detail, search the help documentation for information on how to create a Building Scene Layer.