签到天数: 3096 天 连续签到: 1 天 [LV.Master]开坛元老
|
tony提供rhinoscript方法 RhinoScript 里带的这串指令应该可以达到目的
- Sub CircleFromLength()
- Dim arrCenter, arrPlane, dblLength, dblRadius, strObject
- arrCenter = Rhino.GetPoint("Center point of circle")
- If IsArray(arrCenter) Then
- arrPlane = Rhino.MovePlane(Rhino.ViewCPlane, arrCenter)
- dblLength = Rhino.GetReal("Circle circumference")
- If IsNumeric(dblLength) And (dblLength > 0.0) Then
- dblRadius = dblLength / (2 * Rhino.PI)
- strObject = Rhino.AddCircle(arrPlane, dblRadius)
- Rhino.SelectObject strObject
- End If
- End If
- End Sub
复制代码 我提供的marco 寫個按鍵小巨集
輸入的是半徑值 自動用縮放轉化為週長
- circle
- Radius
- 0
- pause
- SelLast
- scale
- 0
- 0.5/3.141592654
-
复制代码
|
|