- 0
- 0
- 约4.58千字
- 约 33页
- 2018-02-05 发布于浙江
- 举报
王朔,计算机,辅助,建筑设计,教程王朔,计算机,辅助,建筑设计,教程
第十一讲
RhinoScript教程
(参考资料)RhinoScript Primer_Chinese Edition
Data Stream Matching* (匹配数据流)
00_Hello,World
Option Explicit
Call Main()
Sub Main()
rhino.PrintHello,World
End Sub
01_Hello,World_Ver2
Option Explicit
Call Main()
Sub Main()
call HW
End Sub
sub HW
rhino.PrintHello,World_By HW
Funciont
End Sub
RhinoScript编辑器
使用Command的调用方式
Command
Runs a Rhino command script. All Rhino commands can be used in command
scripts. The command can be a build-in Rhino command or a command that is provided
by a 3rd party plug-in.
Write command scripts just as you would type the command sequence at the command
line. A space between characters or a new line act like pressing Enter at the
command line. For more information on writing command scripts, see Scripting in the
Rhino help file.
Note, this method is designed to run one command and one command only. Do not
combine multiple Rhino commands into a single call to this method. For example:
WRONG:
Rhino.Command _Line _SelLast _Invert
CORRECT:
Rhino.Command _Line
Rhino.Command _SelLast
Rhino.Command _Invert
Example
Rhino.Command _Line 0,0,0 2,2,2
Rhino.Command _Line _Pause _Pause
使用Command的调用方式
Dim dblMajorRadius, dblMinorRadius
Dim intSides
dblMajorRadius = Rhino.GetReal(Major radius, 10.0, 1.0, 1000.0)
dblMinorRadius = Rhino.GetReal(Minor radius, 2.0, 0.1, 100.0)
intSides = Rhino.GetInteger(Number of sides, 6, 3, 20)
Dim strPoint1, strPoint2
strPoint1 = w dblMajorRadius ,0,0
strPoint2 = w (dblMajorRadius + dblMin
您可能关注的文档
最近下载
- 数列是特殊函数.doc VIP
- 信息技术七年级下册教案全集_图文.pdf VIP
- 服装系列创意设计.pptx VIP
- 15G310-1-2建筑工程.房屋建筑.装配式混凝土连接节点构造合集.pdf VIP
- 24J331 地沟及盖板资料.pdf VIP
- D-Z-T 0064.47-2021 地下水质分析方法 第47部分:游离二氧化碳的测定 滴定法(正式版).docx VIP
- 【高清可复制】17J925-1_压型金属板建筑构造_3.pdf
- 高级职称申请专家推荐建议模板.docx VIP
- 《城市轨道交通 车辆空气净化装置》(征求意见稿).pdf VIP
- 2026西藏自治区教育考试院招聘非编工作人员11人笔试考试备考题库及答案解析.docx VIP
原创力文档

文档评论(0)