Message 1 of 11
PickfirstSelectionSet problem

Not applicable
01-10-2002
04:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Consider the following:
Dim objSS as AcadSelectionSet
Set objSS = Thisdrawing.PickfirstSelectionSet
...rest of code
This runs fine in a drawing. I then open another drawing and run the code in
it, works fine.
Then I go back to the previous drawing and run it again....
I get an error:
Run-time error '2145320949 (8021000b)':
Calling method AddItems of interface IAcadSelectionSet failed
It's as though VBA is getting confused between the 2 open drawings.
Has anyone else encountered this? If so what did you do?
I also get a similar error (something,something... IAcadSelectionSet failed)
sometimes with regular on screen selections too.
TIA,
Chad.
Dim objSS as AcadSelectionSet
Set objSS = Thisdrawing.PickfirstSelectionSet
...rest of code
This runs fine in a drawing. I then open another drawing and run the code in
it, works fine.
Then I go back to the previous drawing and run it again....
I get an error:
Run-time error '2145320949 (8021000b)':
Calling method AddItems of interface IAcadSelectionSet failed
It's as though VBA is getting confused between the 2 open drawings.
Has anyone else encountered this? If so what did you do?
I also get a similar error (something,something... IAcadSelectionSet failed)
sometimes with regular on screen selections too.
TIA,
Chad.