BlockURLTag

Returns or sets the URL tag, or description, of a block definition.

Syntax

Rhino.BlockURLTag (strBlock [, strURLTag])

Parameters

strBlock

Required.  String.  The name or identifier of an existing block definition.

strURL

Optional.  String.  The new URL tag.  If omitted, the current URL tag is returned.

Returns

String

If a URL tag is not specified,  the current URL tag if successful.

String

If a URL tag is specified, the previous URL tag if successful.

Null

If not successful, or on error.

Example

Dim strBlock, strUrlTag

strBlock = Rhino.GetString("Block name to list URL tag")

If Rhino.IsBlock(strBlock) Then

  strUrlTag = Rhino.BlockURLTag(strBlock)

  If IsNull(strUrlTag) Then

    Rhino.Print "No URL tag"

  Else

    Rhino.Print strUrlTag

  End If

End If

Also See

BlockDescription

BlockURL

IsBlock