一、代码功能
代码实现在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 = "+</