Have You Tried: Add Hyperlinks to DWG Files

We’re living in a world that’s made a transition from isolated information such as printed catalogs to online catalogs that have links—data files that include links to other data files. These automations ensure a flow of reliable information between files and people in a distributed environment.

For example, in AutoCAD, you can easily add hyperlinks to blocks, or any objects, that can open and display any of the following:

  • A website in your browser
  • An image file
  • A data file such as a specification in Adobe PDF format or a Microsoft Excel spreadsheet
  • A different AutoCAD DWG file
  • A pre-addressed email to designated individuals

The result is more intelligent and connected drawing files, plus the PDF files that you generate from these drawing files maintain the included hyperlinks.

Note: The video doesn’t contain audio or closed captions.

Add a Hyperlink to an Object

  1. Create a drawing and then create a circle.
  2. On the Insert tab, Data panel, click Hyperlink. Find
  3. Select the circle and press Enter.

    The Insert Hyperlink dialog box displays.

    Note: You can select several objects to which to add or edit hyperlinks. Each object remains separate and a hyperlink is added to each one.
  4. In the Insert Hyperlink dialog box, click Existing File or Web Page (1), enter Autodesk in the Text to Display field (2), and enter in the Type the File or Web Page field (3).
    Note: If you want to see the hyperlink destination before opening or editing the hyperlink, leave the ‘Text to Display’ field blank.
  5. Click OK.

Now, when you hover over the circle, you see the hyperlink cursor and tooltip. Ctrl+click on the object to open the hyperlink.

Note: If the hyperlink cursor badge and tooltip are not displayed like in the previous image, use the steps in the next section to verify a hyperlink was attached to the object. If a hyperlink was attached, make sure the hyperlink cursor badge and tooltip are enabled by entering HYPERLINKOPTIONS at the Command prompt and entering Yes in response to the “Display hyperlink cursor, tooltip, and shortcut menu?” prompt.

Edit an Existing Hyperlink

  1. On the Insert tab, Data panel, click Hyperlink. Find
  2. Select the circle you created that has the hyperlink.

    The Edit Hyperlink dialog box displays, which is nearly the same as the Insert Hyperlink dialog box.

  3. Make some changes and click OK.
  4. Note: You can also remove the hyperlink by clicking Remove Link in the lower-left area of the Edit Hyperlink dialog box.

Being Safe with Hyperlinks

Just like hyperlinks in an email message or another shared document, you should be cautious about clicking on links in drawings from untrusted sources to avoid malware and other forms of cyberattacks. If the URL isn’t displayed in the hyperlink tooltip, you can see the hyperlink destination by doing one of the following:

View the Destination of a Hyperlink for a Selected Object
  1. Select an object with a hyperlink.
  2. Right-click and choose Hyperlink > Edit Hyperlink.
  3. In the Edit Hyperlink dialog box, look at the value in the ‘Type the File or Web Page Name’ field to make sure it is to a trusted destination.

    If you are unsure about the safety of the destination, you can use a service like Google’s Safer Browsing site ( to check the URL.

View the Destination of All Hyperlinks
Note: SHOWURLS is not available in AutoCAD LT
  1. On the ribbon, click Express Tools tab > Web panel, URL Options > Show URLs.
  2. In the SHOWURLS dialog box, view the destinations of the hyperlinks attached to the objects in the current drawing with the exception of those in blocks or xrefs.
  3. Select a URL in the list and click Edit to see the full URL for long paths.
INTERESTING:   The AutoCAD 2022 Interface Basics

For hyperlinks attached to nested objects in a block or xref, use the following tools to open the block or xref and then use one of the previously mentioned methods to view the URL of a hyperlink:

  • Block Editor (BEDIT command)
  • Reference In-place Editor (REFEDIT command)
  • Open Reference (XOPEN command)
Note: The Show URLs Express Tool is not available in the Block Editor.

Blocks with Hyperlinks

A typical workflow is to add a hyperlink to a block definition rather than after you insert the block. To do so, open the source drawing of the block:

  • Either the drawing file to be inserted or . . .
  • In the Block Editor within a block library drawing

Select one or more objects in the block-whatever objects you want to respond to a cursor rollover-and use the HYPERLINK command. Then, every time you insert that block, the hyperlink is automatically included.

For example, when the block for this bathtub is inserted, the hyperlink cursor displays as shown below when you move the cursor over it.

Add a Hyperlink to a New Block Definition

  1. Create a new drawing with some simple geometry near the UCS origin such as a bathtub.
  2. On the Insert tab, Data panel, click Hyperlink. Find
  3. Select either all the objects in the block or select just the outermost object.
    Note: Whatever you select will be “hot” and display a hyperlink cursor when you roll over it.
  4. Specify the text to display and the URL for the hyperlink as before.
  5. Save the drawing file.

When you insert this drawing file as a block, it will always include the hyperlink that you specified.

Note: When you define a hyperlink in a
block definition, the hyperlink can be modified only in the block definition. Yes, each
block reference can also have its own hyperlink as well, but it’s recommended that you keep things simple.
INTERESTING:   Rotate a View with its Viewport

Link to Other Files

Instead of linking to a website, you can also link to a data file or an image. These links are commonly added to Word files, Excel spreadsheets, and PDFs. In addition to photographs, image files can open diagrams, or illustrations in their associated application.

Let’s try linking to a file.

  1. In a new drawing, create a rectangle.
  2. On the Insert tab, Data panel, click Hyperlink and select the rectangle.
  3. In the Insert Hyperlink dialog box, click File. Then, browse to a file.
    Note: If you choose to use a relative path, the file will be more portable.
  4. Click OK and then test your hyperlink to the file.
  5. Create a PDF of the drawing with the EXPORTPDF command.
Tip: Here’s a fast way to add a hyperlink to a file. Using the right mouse button, drag a file from File Explorer into the AutoCAD drawing area. From the menu, click Create Hyperlink Here and then select the objects to which to add the hyperlink.

Link to a View in a DWG File

In addition to opening a drawing file with a hyperlink, you can specify a saved view within the drawing. First let’s create a saved view in one of your drawings.

  1. Open an existing drawing and zoom to an area within model space.
  2. Enter VIEW at the Command prompt and in the View Manager, click New.
  3. In the New View/Shot Properties dialog box, enter a short name for the view and click OK to close each dialog box.
  4. Save the drawing.

Next, let’s create a hyperlink to this view from a different drawing.

  1. Create a new drawing and create a closed polyline.
  2. Click Hyperlink as before and select the polyline.
  3. In the Insert Hyperlink dialog box, click File and Browse to the file that you just saved.
  4. Then, click Target and expand the tree as shown:
  5. Click OK to close each dialog box.
  6. Move your cursor over the polyline and Ctrl+click.

    The drawing you specified opens to the view that you saved.

INTERESTING:   Have You Tried: Create a Stretchable Dynamic Block

Plotting and Publishing Drawings with Hyperlinks

When plotting a single drawing to an electronic (PDF, DWF, or DWFx) file format, hyperlinks that reference views in other drawings are excluded from the output. If you plan to publish multiple drawings or a sheet set and there are hyperlinks to other drawings in the sheet set, it’s recommended that you publish PDFs and DWFs to the multi-page format with the PUBLISH command rather than the single-page format. This ensures that the hyperlinks work in the multi-page output.

Note: Hyperlinks don’t appear any different when plotted to electronic or hardcopy formats than they do on-screen. For example, the objects don’t appear bold or with any additional annotation.


The ability to easily add hyperlinks to blocks and other objects provides a variety of powerful ways to turn objects in AutoCAD drawings into dynamic sources of information and connectivity.

Hyperlink Commands and System Variables

Command Description
ATTACHURL Attaches hyperlinks to objects or areas in a drawing.
DETACHURL Removes hyperlinks in a drawing from selected objects.
GOTOURL Opens the file or web page associated with the hyperlink attached to an object.
HYPERLINK Attaches a hyperlink to an object or modifies an existing hyperlink.
-HYPERLINK From the Command prompt, inserts and removes hyperlinks from areas or selected objects.
HYPERLINKOPTIONS Controls the display of the hyperlink cursor, tooltips, and shortcut menu.
SHOWURLS (Express Tool) Displays all attached URLs contained in a drawing, and allows them to edited.
System Variable Description Default Value Saved In
HYPERLINKBASE Specifies the path used for all relative hyperlinks in the drawing. If no value is specified, the drawing path is used for all relative hyperlinks. “” Drawing

Source: Autodesk

Back to top button

Adblock Detected

Please disable your ad blocker to be able to view the page content. For an independent site with free content, it's literally a matter of life and death to have ads. Thank you for your understanding! Thanks