Method 'Add' of of object 'IAcadSelectionSets' failed
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Method 'Add' of of object 'IAcadSelectionSets' failed

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
Allen Johnson
Guest





Posted: Mon Dec 20, 2004 10:26 pm    Post subject: Method 'Add' of of object 'IAcadSelectionSets' failed Reply with quote

I get the error:

Method 'Add' of of object 'IAcadSelectionSets' failed

at the Set ssText... line in the VBA code below when the previous selection
set contains text using a TrueType font.
It works fine if the previous selection set uses shx fonts. Any ideas?
The previous selection set is created in a lisp routine using

(if (> (sslength qa_ssgroup) 0)
(progn
(command "select" qa_ssgroup "")
(vl-vbarun "modTextNoteEditorSelectPrev.TextNoteEditorSelectPrev")
)
)

----------------------------------------------------------------------------
-------------

SelectText:
Err.Clear
Set ssText = ThisDrawing.SelectionSets.Add(Now)
If Err.Number <> 0 Then
' MsgBox "Sorry, but an error occured when selecting this item." & vbCrLf
& _
"Try editing this object with the DDE command instead.", _
vbOKOnly, "Selection Error:"
Exit Sub
End If

' Add objects to the selection set
ssText.Select acSelectionSetPrevious, , , vDxfCode, vDxfValue

----------------------------------------------------------------------------
------------

Back to top
Allen Johnson
Guest





Posted: Tue Dec 21, 2004 3:37 am    Post subject: Re: Method 'Add' of of object 'IAcadSelectionSets' failed Reply with quote

Never mind, it was my lisp routine that overfilled the available selection
sets.
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB