DocumentURL - PYTHON 不支持

Returns or sets the uniform resource locator (URL) of the currently loaded Rhino document (3DM file).

语法

Rhino.DocumentURL (url=None)

参数

url

可选参数。字符串。The URL.

返回值

String

If no URL is specified, the current URL if successful.

String

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

Null

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

示例

import Rhino

from System.Diagnostics import Process

url = Rhino.DocumentURL()

if (url!=None and url!=""):

  Process.Start(url)

同见

DocumentName

DocumentPath