BlockURL - PYTHON 不支持

返回或设置图块定义的 URL。

语法

Rhino.BlockURL (strBlock [, strURL])

参数

strBlock

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

strURL

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

返回值

String

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

String

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

Null

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

示例

Dim strBlock, strUrl

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

If Rhino.IsBlock(strBlock) Then

strUrl = Rhino.BlockURL(strBlock)

If IsNull(strUrl) Then

Rhino.Print "No URL"

Else

Rhino.Print strUrl

End If

End If

同见

BlockDescription

BlockURLTag

IsBlock