#coding = utf-8
import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino.RhinoDoc as sd
sc.doc = sd.ActiveDoc
layers = rs.LayerNames()
if("name" in layers):
rs.ObjectsByLayer("name",True)
sc.doc = ghdoc
kevin88763 发表于 2019-3-1 17:24
謝謝你的回覆!
但是我嘗試了將您的代碼導入後,我還是沒辦法選取到,不知哪裡出錯? ...
kevin88763 发表于 2019-3-1 19:13
點擊test是有看到rhino模型被選取,但是gh並沒有模型資料
#coding = utf-8
import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino.RhinoDoc as sd
sc.doc = sd.ActiveDoc
layers = rs.LayerNames()
if("name" in layers):
a = rs.ObjectsByLayer("name",True)
sc.doc = ghdoc
欢迎光临 Rhino3D犀牛中文网 (https://rhino3d.asia/) | Powered by Discuz! X3.3 |