请教!!!!!!!!!!!!!!
<P>请教measure与divide在lisp中调用参数,(command "measure" ???????)</P> <P>在COMMAND下输入该命令就可以看到,去lisp版块吧</P> <P>Private Sub div()</P><P> Dim obj As AcadObject<BR> Dim basept As Variant<BR> Dim SSETS As AcadSelectionSet<BR>On Error Resume Next<BR> If Not IsNull(ThisDrawing.SelectionSets.Item("PLSET")) Then<BR> Set SSETS = ThisDrawing.SelectionSets.Item("PLSET")<BR> SSETS.Delete<BR> End If<BR> Set SSETS = ThisDrawing.SelectionSets.Add("PLSET")<BR> <BR> SSETS.SelectOnScreen<BR> <BR> Set obj = SSETS.Item(0)<BR> ' ThisDrawing.Utility.GetEntity obj, basept, "please pickt pl:"<BR> MsgBox obj.ObjectName</P>
<P>'请教下一句怎样改才可以完成measure的任务?<BR> ThisDrawing.SendCommand "MEASURE" & vbCr & "P" & vbCr & "6" & vbCr</P>
<P>End Sub</P>
<P> </P>
<P>谢谢赐教</P>
页:
[1]