|
Option Explicit
'Script written by <insert name>
'Script copyrighted by <insert company name>
'Script version 2009年9月14日 17:58:53
Call Main()
Sub Main()
Dim xxgwshuliang:xxgwshuliang=28 '小型购物
Dim jgbase(99),i,jg(99)
For i=0 To xxgwshuliang-1 Step 1
jgbase(i)=rhino.Getobject("请输入小型购物点",1)
jgbase(i)=rhino.PointCoordinates(jgbase(i))
'Call rhino.AddPoint(jgbase(i))
'Call rhino.AddText("大树林",jgbase(i),1)
Call rhino.AddLine(jgbase(i),array(9999,9999,0))
Next
Dim dxgwshuliang:dxgwshuliang=6 '大型购物
For i=xxgwshuliang To xxgwshuliang+dxgwshuliang-1 Step 1
jgbase(i)=rhino.Getobject("请输入大型购物点",1)
jgbase(i)=rhino.PointCoordinates(jgbase(i))
'Call rhino.AddPoint(jgbase(i))
'Call rhino.AddText("湖岸点",jgbase(i),1)
Call rhino.AddLine(jgbase(i),array(9999,9999,0))
Next
Dim cszsshuliang:cszsshuliang=3 '城市展示
For i=xxgwshuliang+dxgwshuliang To xxgwshuliang+dxgwshuliang+cszsshuliang-1 Step 1
jgbase(i)=rhino.Getobject("请输入城市展示点",1)
jgbase(i)=rhino.PointCoordinates(jgbase(i))
'Call rhino.AddPoint(jgbase(i))
'Call rhino.AddText("景观树",jgbase(i),1)
Call rhino.AddLine(jgbase(i),array(9999,9999,0))
Next
Dim jdshuliang:jdshuliang=4 '酒店
For i=xxgwshuliang+dxgwshuliang+cszsshuliang To xxgwshuliang+dxgwshuliang+cszsshuliang+jdshuliang-1 Step 1
jgbase(i)=rhino.Getobject("请输入酒店点",1)
jgbase(i)=rhino.PointCoordinates(jgbase(i))
'Call rhino.AddPoint(jgbase(i))
'Call rhino.AddText("小树林",jgbase(i),1)
Call rhino.AddLine(jgbase(i),array(9999,9999,0))
Next
Dim cyshuliang:cyshuliang=19 '餐饮
For i=xxgwshuliang+dxgwshuliang+cszsshuliang+jdshuliang To xxgwshuliang+dxgwshuliang+cszsshuliang+jdshuliang+cyshuliang-1 Step 1
jgbase(i)=rhino.Getobject("请输入餐饮点",1)
jgbase(i)=rhino.PointCoordinates(jgbase(i))
'Call rhino.AddPoint(jgbase(i))
'Call rhino.AddText("小树林",jgbase(i),1)
Call rhino.AddLine(jgbase(i),array(9999,9999,0))
Next
Dim xzlshuliang:xzlshuliang=7 '写字楼
For i=xxgwshuliang+dxgwshuliang+cszsshuliang+jdshuliang+cyshuliang To xxgwshuliang+dxgwshuliang+cszsshuliang+jdshuliang+cyshuliang+xzlshuliang-1 Step 1
jgbase(i)=rhino.Getobject("请输入写字楼点",1)
jgbase(i)=rhino.PointCoordinates(jgbase(i))
'Call rhino.AddPoint(jgbase(i))
'Call rhino.AddText("小树林",jgbase(i),1)
Call rhino.AddLine(jgbase(i),array(9999,9999,0))
Next
Dim jgshuliang:jgshuliang=20 '景观
For i=xxgwshuliang+dxgwshuliang+cszsshuliang+jdshuliang+cyshuliang+xzlshuliang To xxgwshuliang+dxgwshuliang+cszsshuliang+jdshuliang+cyshuliang+xzlshuliang+jgshuliang-1 Step 1
jgbase(i)=rhino.Getobject("请输入景观点",1)
jgbase(i)=rhino.PointCoordinates(jgbase(i))
'Call rhino.AddPoint(jgbase(i))
'Call rhino.AddText("小树林",jgbase(i),1)
Call rhino.AddLine(jgbase(i),array(9999,9999,0))
Next
Dim startpt,endpt
Dim stpt(28)
For i=0 To 27 Step 1
stpt(i)=rhino.Getobject("请输入起点")
Next
'Call rhino.AddPoint(stpt1) |
|