NCF参数化建筑论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 50663|回复: 10
打印 上一主题 下一主题

[悬赏中] 请教如何在Gh中调用rhino的图层命令。

[复制链接]
1m
发表于 2019-9-22 19:51:02 | 显示全部楼层
直接上附件

addLayerDemo.gh

1.41 KB, 下载次数: 96, 下载积分: 照度 -1 lux

2m
发表于 2019-9-23 07:11:20 | 显示全部楼层
本帖最后由 元子Leo 于 2019-9-23 09:12 编辑

如果你用 Python 插件:

import rhinoscriptsyntax as rs

之后你就可以调用了

developer.rhino3d.com/api/rhinoscript/layer_methods/layer_methods.htm
3m
发表于 2019-9-23 22:58:13 | 显示全部楼层
anturong 发表于 2019-9-23 19:35
可以给出完整代码吗。我写完出错了
Runtime error (UnboundNameException): name 'AddLayer' is not def ...

import rhinoscriptsyntax as rs

newLayer = rs.AddLayer(...)
4m
发表于 2019-9-24 12:33:35 | 显示全部楼层
Don't worry my friend.

小黑屋|手机版|NCF参数化建筑论坛 ( 浙ICP备2020044100号-2 )    辽公网安备21021102000973号

GMT+8, 2024-5-8 04:25 , Processed in 0.311930 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表