Purpose
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
The URL (or URLs) defined in this attribute will apply only to the next attribute in the stream that is defined. For example, if WHIP! data has red as its current color, and the AttributeURL is serialized just prior to the "red" color, then all following "red" primitives which get drawn will have the URL associated with them, until a new like-type attribute is defined (i.e. if the URL is applied to a viewport, it will be only for that viewport. When the viewport is closed or a new viewport is defined, then the URL scope terminates.) An AttributeURL basically has three parts:
(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.