Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5746

Select Contents of Closed Curve

$
0
0

@dbodey wrote:

Hello,

I am working on a lot of 2D closed shapes. To select the contents(there are textboxes inside) of these closed polylines/curves I have been using:

rs.UnselectAllObjects()
rs.Command("_SelBoundary _SelectionMode=_Crossing selid " + str(Id) + " _Enter", False)

return rs.SelectedObjects()

This works; however, it is slow when I have a lot of shapes because it highlights each shape, one at a time. Is there a way to obtain the same results from SelBoundary without actually highlighting anything, or could someone point me to where this function is so that I could modify it to my use?

By the way, I used to use a bounding box, but this proved erroneous because of shapes that were rotated 45 degrees and close together.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5746

Trending Articles