一、代码功能
代码实现在rhino中选择一段曲线后,在曲线的起始点添加一个注解点,这里用python代码实现了窗口的设计。

二、代码
代码如下(示例):
# with a textbox that can be used to define the text in a new text dot
from System.Windows.Forms import Form, DialogResult, Label, Button, TextBox
from System.Drawing import Point, Size
import rhinoscript.selection
import rhinoscript.geometry
# Our custom form class
class AnnotateForm(Form):
# build all of the controls in the constructor
def __init__(self, curveId):
offset = 10
self.Text = "Annotate Curve"
crvlabel = Label(Text="Curve ID = "+

本文展示了如何使用Rhino.python编写代码,在选择的曲线上自动生成起始点的注解点。通过示例代码,详细解释了窗口小程序的实现过程。
最低0.47元/天 解锁文章
12

被折叠的 条评论
为什么被折叠?



