Jump to content

Search block on polyline


llmb0611

Recommended Posts

Hi. I'm trying to find a lisp routine that would solve my problem. I have a lot of polylines, and each polyline should have one block placed on a midpoint (doesn't matter where, it just has to be midpoint). But when I select all polylines and blocks I don't have the same number. So now I should search for polylines that maybe have 2 or more blocks on one polyline, and polylines that don't have any blocks placed on them. Is that even possible? Thank you. If needed I can place a sample file. 

Link to comment
Share on other sites

Here's a sample file. In the sample green lines are ok. They have a block placed on midpoint.

The red lines are not ok. One has a block near the polyline, and one polyline doesn't have a block. 

sample.dwg

Link to comment
Share on other sites

Is the block insert point (generally point 0,0 in the block) on the polyline, or very close to it or does the placed on a polyline mean any part of the block overlaps the polyline?

 

 

This might be a starting point (weekend, CAD is off so have to come back to this)

 

 

 

 

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