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)