Jump to content

Selecting all touching lines, polylines or blocks


hetauma

Recommended Posts

Hi I want to make a lisp that asks me to pick one or more starting polylines and then it will automatically select all lines poly-lines or blocks that touch with that one or the next in the selection that belong to some specific layers.

I was thinking turning off the layers that I don't want and then use fast select with fsmode on.

Thing is that when I run fast select it doesn't give me the same results every time.

While selecting the same initial polyline it misses from the selection every time some different objects.

 

Final part will be to make a sum of an attribute of all the blocks that it has selected.

 

Any ideas on the approach for this?

any sample codes?

 

Thanx in advance

Link to comment
Share on other sites

You should build a list from vertexes of said polyline and use it as argument for SSGET function called with Fence argument; apply an appropriate filter.

(ssget "_F" listOfVertexes '((0 . "*LINE,INSERT"))

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