Jump to content

Recommended Posts

Posted

Hi, I am writing code on modifying items in pickfirstselectionset.

 

Everything goes well in VBA editor.

But after I attached macro to a toolbar button, the selection is cancelled when clicking the button and then no changes to the previous selected objects.

 

I used vbarun in command line, it's the same.

 

anyone knows how to fix it?

Thx in advance. I'm familiar with VBA, but absolutely new with AutoCAD. I kind of sense it's a rookie questioin but I can't find a solution on the web.

Posted

still don't know how to use pickfirstselectionset, but I change it to selectionset "CURRENT", it seems ok.

I forgot to add .Update before using at the first time.

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