BlockURLTag - PYTHON 不支持

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

语法

Rhino.BlockURLTag (strBlock [, strURLTag])

参数

strBlock

Required.字符串。The name of an existing block definition.

strURL

可选参数。字符串。The new URL tag.If omitted, the current URL tag is returned.

返回值

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

如果执行不成功或出错,返回空值。

示例

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

同见

BlockDescription

BlockURL

IsBlock