Public Function axSset2lspEnts(ByVal sSet As AcadSelectionSet) As String Dim enthandle As String Dim strEnts As String Dim i As Integer If sSet.count = 0 Then Exit Function enthandle = sSet.Item(0).Handle strEnts = "(handent" & Chr(34) & enthandle & Chr(34) & ")" If sSet.count > 1 Then For i = 1 To sSet.count - 1 enthandle = sSet.Item(i).Handle strEnts = strEnts & vbCr & "(handent" & Chr(34) & enthandle & Chr(34) & ")" Next i End If axSset2lspEnts = strEnts End Function