Jump to content

Emulate and modify 'Select' command in VBA


NirantarVidyarthee

Recommended Posts

 

I want  to emulate the Select command in VBA with some modification.

 

When we execute 'Select' command at command line, after each selection, the prompt appears at the command line indicating how many objects were selected.
I want to select Circles and the prompt should indicate the cumulative area of circles selected so far.

 

Is it possible?

Link to comment
Share on other sites

In vba it is select, trying to find some examples, it can have filters as well they are done as dxf codes. In lisp (0 . "Insert") as a ssget filter see intgroup & vargroup. This is for blocks.

 


  intGroup(0) = 0
  varGroup(0) = "Insert"
 
  Set SelSet = ThisDrawing.SelectionSets.Add("sset")
  SelSet.Select acSelectionSetAll, , , intGroup, varGroup

 For Each Ent In SelSet
do something

 

Link to comment
Share on other sites

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