Jump to content
  • 0

count objects in VW 2023


shaneey

Question

2 answers to this question

Recommended Posts

  • 0

The quick and dirty way to do it would be to go to Tools - Custom Selection, select Execute Immediately then select All Objects as the criteria.  There will be a counter at the bottom of the dialog box that shows the number of objects.  You can check the Search Within Symbols, Plug-in Objects, and/or Viewport Annotations depending on what kind of count you are looking for.

 

image.png.934f7cd3f412a3bdabaf0a3c42cf21a6.png

 

If you want something a little faster, you can create a script (Vectorscript format) with something like:

AlrtDialog(Concat(Count(ALL),' objects in drawing'));

for all objects on layers, but not going inside of symbols (each symbol would count as one object), plug-in objects, or viewport annotations.

 

AlrtDialog(Concat(Count(INSYMBOL & (ALL)),' objects in drawing and symbols'));

would count all objects on layers and inside symbols (each component of the symbol would be counted separately and in addition to the symbol, so a drawing consisting of 2 symbols, each with 2 rectangles would come to a count of 6 objects).

 

For a full count of every single object, inside symbols, plug-ins, and annotations, the script would look like this:

AlrtDialog(Concat(INSYMBOL & INOBJECT & INVIEWPORT & (ALL)),' total objects in drawing'));

 

EDIT: I realize now that you weren't specific about what kind of objects you are trying to count.  I usually use the Custom Selection method outlined above, just setting the criteria to match exactly what I'm trying to count and then reading the value at the bottom of the dialog box.  Another method would be to make a Worksheet with a cell with the =COUNT() function and inserting the criteria within the parentheses.

Edited by Jesse Cogswell
  • Like 1
Link to comment

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
Answer this question...

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