Private Sub JoinPoly()请指点
<p>Private Sub JoinPoly()<br/>Dim SSet As AcadSelectionSet<br/>Dim UseElevation As Double<br/>Dim N As Integer<br/>Dim fType(0 To 1) As Integer<br/>Dim fData(0 To 1) As Variant<br/>Dim det As String<br/>fType(0) = 0: fData(0) = "LightWeightPolyline"<br/>fType(1) = 38</p><p>If Not IsNull(ThisDrawing.SelectionSets.Item("JoinPoly")) Then<br/>Set SSet = ThisDrawing.SelectionSets.Item("JoinPoly")<br/> SSet.Delete<br/>End If<br/>Set SSet = ThisDrawing.SelectionSets.Add("JoinPoly")<br/>For N = 0 To 7<br/> SSet.Clear<br/> fData(1) = H(N)<br/> <br/> <strong>SSet.Select acSelectionSetAll, , , fType, fData</strong><br/> det = axSSet2lspEnts(SSet)<br/> SSet.Clear<br/> '使用SendCommand方法完成连接操作<br/> ThisDrawing.SendCommand "_PEDIT" & vbCr & "M" & vbCr & det & vbCr & vbCr & "J" & vbCr & "0.001" & vbCr & vbCr</p><p>Next N</p><p><br/>End Sub</p><p></p><p></p><p> <strong>SSet.Select acSelectionSetAll, , , fType, fData提示出错,不知是什么原因?</strong></p><p><strong></strong><br/></p>
页:
[1]