import scriptcontext as sc
import Rhino
sc.doc = Rhino.RhinoDoc.ActiveDoc
"""
do something
……
……
"""
sc.doc = ghdoc
import GhPython
ghdoc = GhPython.DocReplacement.GrasshopperDocument()
import scriptcontext as sc
import Rhino
import GhPython
sc.doc = Rhino.RhinoDoc.ActiveDoc
"""
do something
……
……
"""
ghdoc = GhPython.DocReplacement.GrasshopperDocument()
sc.doc = ghdoc
欢迎光临 Rhino3D犀牛中文网 (https://rhino3d.asia/) | Powered by Discuz! X3.3 |