Dim adText as AcadText
Dim adMText As AcadMText
Dim adss as AcadSelectionset
Dim fType(0 to 3) As Integet
Dim fData(0 to 3) As Variant
Dim ReturnPoint As Variant
Dim LTPoint(3),RBPoint(3) As Double
On Error Resume Next
Form1.Hide
ReturnPoint=ThisDrawing.Utility.getPoint(,"Enter the 1st Point:")
LTPoint(0)=ReturnPoint(0):LTPoint(1)=ReturnPoint(1):LTPoint(2)=0
ReturnPoint=ThisDrawing.Utility.getPoint(,"Enter the 1st Point:")
RBPoint(0)=ReturnPoint(0):RBPoint(1)=ReturnPoint(1):RBPoint(2)=0
If Not IsNull(ThisDrawing.selectionSets.Item("adss"))Then
Set adss=ThisDrawing.SelectionSets.Item("adss")
adss.Delete
End If
set adss=ThisDrawing.SelectionSets/Add("adss")
adss.Clear