|
|
|
<P>我还的请教一下仁兄,,这个程序运行不过去????</P><P> Dim Users_Selection As AcadSelectionSet<BR> Dim Drawing_Selected As AcadEntity<BR> Dim Point_xyh() As Double<BR> Dim Name As String<BR><BR></P><P class=MSize> ThisDrawing.PickfirstSelectionSet.Clear<BR> Set Users_Selection = ThisDrawing.PickfirstSelectionSet<BR> Users_Selection.Erase: Users_Selection.SelectOnScreen '选择对象<BR></P><P class=MSize> For Each Drawing_Selected In Users_Selection '循环 读取选择的点<BR> Name = Drawing_Selected.ObjectName'对象名称<BR> If Name = "AcDbPoint" Then'点<BR> Point_xyh = Drawing_Selected.Coordinates '读取(好象选择集中没有coordinates属性啊)<BR> all_x(Count) = Point_xyh(0) 'X 转存<BR> all_y(Count) = Point_xyh(1) 'Y<BR> all_h(Count) = Point_xyh(2) 'H<BR> Count = Count + 1<BR> ElseIf Name = "AcDbBlockReference" Then'CASS点<BR> Point_xyh = Drawing_Selected.insertionPoint'读取<BR> all_x(Count) = Point_xyh(0) 'X 转存<BR> all_y(Count) = Point_xyh(1) 'Y<BR> all_h(Count) = Point_xyh(2) 'H<BR> Count = Count + 1<BR> End If<BR> Next<BR>我没有运行过去啊,我也不知道为什么?请指教!!!!!!在此谢过了!!!!</P><P class=MSize> </P> |
|