URL parameter link to specific location in file

URL parameter link to specific location in file

sdurkee_sa
Enthusiast Enthusiast
4,356 Views
3 Replies
Message 1 of 4

URL parameter link to specific location in file

sdurkee_sa
Enthusiast
Enthusiast

How do you make the URL parameter link to a specific location in a file?

 

In Revit 2019 we have a generic annotation family which contains a URL parameter type.

 

For an example, open the “rac_basic_sample_project.rvt” project that comes with Revit. Those blue circles with a white question mark are generic annotation families which contain URL parameters. In this sample project the links are to HTML pages, but you can link to other file type like PDFs.

 

We have a PDF with headings (which act as bookmarks) and also has named destinations assigned at those headings. See attached.

 

If you open this file from your internet browser (e.g., Google Chrome), you can open the file at any one of these specific locations in the file. For example:

<folder>/Title.pdf                                           opens the file at the beginning

<folder>/Title.pdf#B-1                                   opens the file at the B-1 heading (bookmark)

<folder>/Title.pdf#nameddest=B-2             opens the file at B-2 (named destination)

<folder>/Title.pdf#page=3                            opens the file on page 3

 

In Revit, when you put a link in a URL parameter and select the three dots “…” in the field, then Revit will open the associated file. This works fine to open the file at the beginning, but I need to know how to make it open a file at a specific location.

 

0 Likes
Accepted solutions (1)
4,357 Views
3 Replies
Replies (3)
Message 2 of 4

barthbradley
Consultant
Consultant
0 Likes
Message 3 of 4

sdurkee_sa
Enthusiast
Enthusiast

That article describes how to use a URL parameter to link to a file, but the question is, how do you link to a particular location (bookmark, heading, destination, or page, etc.) within a file?

0 Likes
Message 4 of 4

sdurkee_sa
Enthusiast
Enthusiast
Accepted solution

Found the solution with help from this link https://helpx.adobe.com/acrobat/kb/link-html-pdf-page-acrobat.html.

 

The "#" destination anchors do work, but the PDF has to be hosted on a website. Mapped drive letters or UNC will not work.

 

Moved the file to our SharePoint site and it works great.

• https://<folder>/Title.pdf opens the file at the beginning
• https://<folder>/Title.pdf#B-1 opens the file at the B-1 heading
• https://<folder>/Title.pdf#nameddest=B-2 opens the file at B-2 (named destination)
• https://<folder>/Title.pdf#page=3 opens the file on page 3