Link CAD into Revit using RIR

Hi all, I wonder if we can use RIR to batch link CAD files into Revit.
I know the common work flow in Revit is: you add a drafting view, then you link a dwg file in this view.
But if you have quite a few of this dwg files, it would be a tedious job for human… so I am curious if we can ask the machine to do the repetitive work.


Thanks for any help.

I can find the “Add drafting view” component, but I cannot find any “Link dwg” or “Link file” component. Does it have another name in RIR?

Hi Jack,

I’ve added your vote to the existing feature request.

This will probably involve several components, due to the many options available for imports/linking.

I wonder when we can have this great function added… I cannot wait to use it. I heard that you can do it in Dynamo but it is a pity that I don’t how to use Dynamo…But I have hundreds sheets to do recently :smiling_face_with_tear:

Hi Japhy,

Is there an auto link model to Revit even just one by one process? without going to the revit link prompting? even a python or c# custom component for now?

Thanks

There is still no RIR component group that exists for this yet, right? Thanks.

@Cole_McDowell Please install the latest WIP version of Rhino.Inside.Revit as it includes the Link CAD component. Just keep in mind that it’s still a work in progress and not a public release, so you may encounter some bugs.

@MSAwan Hi Muhammad, I wonder if this is the Link CAD component. How should I use it? In the Link CAD process we would need to set Colors, Layers/Levels, Import units, Scale, Positioning, view and Place etc

Thanks in advance

These options are missing. For now you can link the cad file from the given path.

If we don’t have those options then how can we use the link CAD? Is there other component can help to define those setting?

Yes we do need that currently component is using the default values. Let me see if we can set those after important because in the api it’s says it’s get set properties.

Hi Muhammad, I have try to let AI to write a GhPython button which can link dwg files into Revit. It seems working, but the only thing is, it doesn’t link the dwg file using millimeter or centimeter as I expacted.

No matter whether I input the number 0–1 or the text “Millimeter” or “Centimeter,” it ultimately gets input to Revit in “feet” units. What is the problem here? Also, although the scale is set to 1:1 when I input it, the resulting scale is always 0.003281. As for the scale, at worst I can enter 304.7851 instead of 1, and then the scale that goes into Revit is 1—that does solve it.

Link CAD into Revit2024 V8 02.gh (35.6 KB)

But I really can’t solve the Units issue. I must have the units set to “Centimeter” or “Millimeter” when linking into Revit; otherwise many of my hatch patterns will appear as a solid black area, and even if I correct the Units after entering Revit, the hatch patterns still won’t display. I want to know where this GhPython is written incorrectly and whether there is any solution. Thank you!

use this here. I will look into the code later.

This new component will work.

CAD.gha (26.5 KB)

Great!! Many thanks Muhammad!!

Could you please kindly advise on the correct way to use this CAD.gha file? I tried dragging it directly into the Grasshopper canvas, but it did not seem to respond. Could you please let me know whether it is a file that needs to be installed? For your reference, I am currently using Revit 2024 (version 2024.3.30.11), Rhino 8 SR35, and Rhino.Inside.Revit version 1.37.9782. I would greatly appreciate your help. Thank you very much.

@Jack_Zeng it’s a GH file, you have to place in the directory.

Follow the following installation procedure.

Hi Muhammad, I have follow the installation instruction but cann’t make it work… I inspected the CAD.gha assembly. It references RevitAPI version 25.4.50.0, which belongs to Revit 2025, while I am using Revit 2024.3.3 (24.3.30.11) due to project requirements. Could you please provide a build compiled against the Revit 2024 API? My other versions are Rhino 8 SR35 and Rhino.Inside.Revit 1.37.9782. The current file is also targeting .NET 8.

Many thanks

Have you tried to change to folder name to 2024

Yes, I renamed the document to Revit 2024, and then when I opened Grasshopper in Revit, a panel popped up saying that CAD.gha could not be loaded (as shown).

Regardless of whether the document is named Revit 2024 or Revit 2025, after entering Grasshopper, I can’t search for CAD Import Options or the Link CAD File (Options) with the Options input shown in your screenshot.

).