Set Attribute URL Link

Purpose

Syntax
 
Opcode format Opcode Operand Format Comments
Extended ASCII (AttributeURL [<ws><IIndex>[<ws>([<ws>]<TAddress>\
[<ws><TName>[<ws>]])]*][<ws>])
Establishes a URL definition assigned to (or removed from) the next rendition attribute in the file stream.

Index   An integer to identify a URL URL   An ASCII text string that is to be attached to a single subsequent attribute (with matching ID)

Address   Uniform Resource Locator

Name   A user friendly name of a URL that is displayed by a WHIP! data viewing application Details

In the following example, the first geometric primitive is set with a specified URL, the next with a null URL, and the last primitive with the same URL (shortened version using just the index) as the first primitive.

(AttributeURL (0 http://www.autodesk.com Autodesk))
(Viewport 4 0,0 10,0 10,10 0,10)

The URL will be attached to the Viewport, and subsequent geometry within that viewport should be given linkable behavior. The actual URL is http://www.autodesk.com but the user friendly name "Autodesk" can be displayed by a WHIP! data viewing application.

As with attributes associated with geomoetry, only one AttributeURL link attribute is associated with a rendition attribute at any given point in the stream. If an AttributeURL link attribute is active in WHIP! data and a second AttributeURL link attribute is specified for some other attribute type (or for the same attribute type as for the first AttributeURL), only the later AttributeURL link attribute applies to the following attribute.

Attaching multiple URLs to an attribute is illustrated in the following example:

(AttributeURL (0 http://www.autodesk.com Autodesk)(1 http://comsys.autodesk.com Comsys))
(Viewport 4 0,0 10,0 10,10 0,10)

The two URLs will be attached to the viewport. The actual URLs are http://www.autodesk.com and http://comsys.autodesk.com but their respective user friendly names "Autodesk" and "Comsys" can be displayed by a WHIP! data viewing application.