Jump to content
Developer Wiki and Function Reference Links ×

Counting objects inscribed in another one


r.cipriani

Recommended Posts

I have a rectangular matrix of circles (but it can be also an irregular group of circle), a larger circle and the necessity to count the small circle inside the larger.

This is a component of a workflow where I have to select a given number of small circle, extrude them and subtract from another solid.

Actually I draw the matrix, draw a circle of surface calculated multiplying the area of the square which contain any small circle by the number of circles, retrace the circle with the Polygon Marquee Mode and read the number in the Object Info Pallette, modify the radius of the big circle and so on.

The most time consuming operation is tracing, so if I can automate the count of object inside I will be very happy!

I attach a demo file with the matrix and a circle, in VW 2017 format.

 

Thank you to anyone can help me.

Roberto

test selezione inside.vwx

Link to comment

Try this and see if it works for you. If so, we can make a script out of it to automate at least part of the process.

 

Select the large circle.  

Convert Copy to Polygon.

Name the new polygon (I called mine Roberto).

Go to the Tools menu and choose Custom Selection.

Choose Select Only and click the Criteria button.

Set the Criteria to Location is within Roberto and click OK.

 

You should now have all of the circles that are even partially within the large circle selected.

 

Let me now if this is what you are looking for.

Link to comment
7 hours ago, Pat Stanford said:

Try this and see if it works for you. If so, we can make a script out of it to automate at least part of the process.

 

Select the large circle.  

Convert Copy to Polygon.

Name the new polygon (I called mine Roberto).

Go to the Tools menu and choose Custom Selection.

Choose Select Only and click the Criteria button.

Set the Criteria to Location is within Roberto and click OK.

 

You should now have all of the circles that are even partially within the large circle selected.

 

Let me now if this is what you are looking for.

Hi, Pat,

thank you. Actually I select all and Intersect, having selected all the small circles and part of it and transfer the selection on a new layer.

Your look better, and I missed the Criteria "Location is within".

 

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