Jump to content

Recommended Posts

Posted
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)

  • Replies 23
  • Created
  • Last Reply

Top Posters In This Topic

  • 3dwannab

    10

  • Grrr

    5

  • GregGleason

    4

  • Lee Mac

    2

Posted

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.

Posted

Thanks, I'll try that the next time it arises.

Posted
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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...