看看下面的阵列所选文本的代码错在那里?
<P> Dim TextSSet As AcadSelectionSet<BR> <BR> ThisDrawing.Utility.Prompt vbCr & "选择单行文字:"<BR> TextSSet.SelectOnScreen<BR> <BR> Dim RetVal As Variant<BR> RetVal = TextSSet.ArrayRectangular(4, 4, 1, 10, 10, 1)</P><P>运行后报什么:运行时错误'91',对象变量或with块变量未设置.</P> <P>On Error Resume Next<BR>Dim TextSSet As AcadSelectionSet<BR> <BR> ThisDrawing.Utility.Prompt vbCr & "选择单行文字:"</P>
<P>ThisDrawing.SelectionSets.Item("TextSSet ").Delete<BR> Set TextSSet = ThisDrawing.SelectionSets.Add("TextSSet ")</P>
<P><BR> TextSSet.SelectOnScreen<BR> <BR> Dim RetVal As Variant<BR> RetVal = TextSSet.ArrayRectangular(4, 4, 1, 10, 10, 1)</P> <P>选择集没有ArrayRectangular方法!</P>
页:
[1]