返回或设置图块定义的 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