3dwannab Posted March 29, 2018 Posted March 29, 2018 I'm only aware of this error, when you try few times to obtain the active selection set via activex without deleting it.Are you sure that you get the error because of this particular code? BTW, yea I didn't excluded the subentities, like Lee pointed out. Not sure, I was doing more copy and pastes today, more than usual and was using the C0 defun so I assumed it was that. I do have a copy history plugin that may also be causing it. (https://apps.autodesk.com/ACD/en/Detail/Index?id=354291812252272809&appLang=en&os=Win32_64) Quote
Grrr Posted March 29, 2018 Posted March 29, 2018 Manual fix is this: (vlax-for o (vla-get-SelectionSets (vla-get-ActiveDocument (vlax-get-acad-object))) (vla-Delete o)) But note thats just temporary, because the issue is not solved in the problematic code you use. Maybe another reason might be this subentities exclusion, that Lee pointed? - not sure. Quote
3dwannab Posted March 29, 2018 Posted March 29, 2018 Thanks, I'll try that the next time it arises. Quote
3dwannab Posted April 1, 2018 Posted April 1, 2018 Manual fix is this: (vlax-for o (vla-get-SelectionSets (vla-get-ActiveDocument (vlax-get-acad-object))) (vla-Delete o)) But note thats just temporary, because the issue is not solved in the problematic code you use. Maybe another reason might be this subentities exclusion, that Lee pointed? - not sure. I ran into the problem again and ran that code to empty out any ss's. It didn't work and had to exit/restart ACAD to enable copying again. I'm going to test out Lee Macs code. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.