Hyperlink
Parent page: Objects
Summary
A hyperlink is a non-electrical drawing primitive. Similar to a text string, it can be placed anywhere on a sheet. Where it differs is in its ability to link to a web page, or to a document on a local or shared drive, through specification of a target URL. This offers a fast, convenient alternative when providing access to datasheets for components used in a design. A hyperlink object can also provide a beneficial link to your own organization's website, within the title blocks of your schematic source documents.
Availability
Hyperlinks are available for placement in both Schematic and Schematic Library Editors by:
- Choosing Place » Hyperlink [P, K] from the respective editor's main menus.
- Clicking the button on the Utility Tools drop-down () of the Utilities toolbar.
Placement
After launching the command, the cursor will change to a cross-hair and you will enter hyperlink placement mode. A hyperlink will appear "floating" on the cursor.
- Position the object and click or press Enter to effect placement.
- Continue placing further hyperlinks, or right-click or press Esc to exit placement mode.
Additional actions that can be performed during placement are:
- Press the Tab key to access an associated properties dialog, from where properties for the hyperlink can be changed on-the-fly.
- Press the Alt key to constrain the direction of movement to the horizontal or vertical axis, depending on the initial direction of movement.
- Press the Spacebar to rotate the link text anti-clockwise or Shift+Spacebar for clockwise rotation. Rotation is in steps of 90°.
- Press the X or Y keys to mirror the link text along the X-axis or Y-axis respectively.
Non-Graphical Editing...
The following methods of non-graphical editing are available:
...via an Associated Properties Dialog
This method of editing uses the following dialog to modify the properties of a hyperlink object.
The Hyperlink dialog can be accessed prior to entering placement mode, from the Schematic – Default Primitives page of the Preferences dialog. This allows the default properties for the hyperlink object to be changed, which will be applied when placing subsequent hyperlinks.
During placement, the dialog can be accessed by pressing the Tab key.
After placement, the dialog can be accessed in one of the following ways:
- Double-clicking on the placed hyperlink object.
- Placing the cursor over the hyperlink object, right-clicking and choosing Properties from the context menu.
- Using the Edit » Change command and clicking once over the placed hyperlink object.
...via an Inspector Panel
An Inspector panel enables the designer to interrogate and edit the properties of one or more design objects in the active document. Used in conjunction with appropriate filtering, the panel can be used to make changes to multiple objects of the same kind, from one convenient location.
...via a List Panel
A List panel allows the designer to display design objects from one or more documents in tabular format, enabling quick inspection and modification of object attributes. Used in conjunction with appropriate filtering, it enables the display of just those objects falling under the scope of the active filter – allowing the designer to target and edit multiple design objects with greater accuracy and efficiency.
Filtering
In support of the hyperlink object, two additional keywords are available for use when targeting hyperlinks using logical query expressions. These are specifically for use with the hyperlink object, and complement the range of other keywords used to target a string-like object.
URL
– the URL of the hyperlink. This keyword can be found in the SCH Functions – Fields category, when using the Query Helper.IsHyperlink
– is the object a hyperlink? This keyword can be found in the SCH Functions – Object Type Checks category, when using the Query Helper.
Create logical expressions for queries to target and return hyperlinks in your design as required. Some examples of logical query expressions targeting hyperlinks are:
IsHyperlink And (StringText = 'Datasheet')
– targets all hyperlink objects with link text of "Datasheet".IsHyperlink And (URL Like '*altium*')
– targets all hyperlink objects with URLs containing "altium" in their string.URL Like '*altium*'
– targets all hyperlink objects with URLs containing "altium" in their string.
Graphical Editing
This method of editing allows you to select a placed hyperlink object directly in the workspace and change its location graphically. Hyperlink objects can only be adjusted with respect to their size by changing the size of the font used (accessed through the Hyperlink dialog). As such, editing handles are not available when the hyperlink object is selected:
- Click anywhere inside the dashed box and drag to reposition the hyperlink as required. While dragging, the hyperlink can be rotated (Spacebar/Shift+Spacebar) or mirrored (X or Y keys to mirror along the X-axis or Y-axis respectively).
- The link text for a hyperlink object can be edited in-place by:
- Single-clicking the hyperlink to select it.
- Single-clicking again (or pressing the Enter key) to enter the in-place editing mode. Sufficient time between each click should be given to ensure the software does not interpret the two single-clicks as one double-click (which would open the hyperlink's properties dialog).
- To finish editing in-place text, press the Enter key, or use the mouse to click away from the hyperlink.
Following a Link
Once a hyperlink object has been configured as required, it can be used from within the design workspace. To do so, simply hover the cursor over the hyperlink. After a short delay, a pop-up with the URL will appear. Click this to open the URL either within the software, or in an external browser, in accordance with your defined preference.
The pop-up containing the URL is a feature of the software's Design Insight System. Specifically, it is obtained by enabling the Hyperlink Insight feature of the system. This is done on the System – Design Insight page of the Preferences dialog. As with other elements of the system, you can configure the launch style for the pop-up – Mouse Hover and/or Alt+Double Click.
Configuring Hyperlink Insight.
Alternatively, a link can be followed by right-clicking over it and accessing the URL from the Hyperlink sub-menu. This would be the way to follow a link if Hyperlink Insight is disabled.
Notes
- When configuring the hyperlink, you don't need to enter the full URL with
http://
prefix. Entering the short-form address for a website will also work, for examplewww.altium.com
, orlive.altium.com
. Also, when targeting a local document on your hard drive or a shared drive, simply use the prefixfile:///
– for examplefile:///C:\Datasheets\ExampleDatasheet.pdf
.