Jump to content

Generate Boundary Line By Selecting Intersecting lines


loudy000

Recommended Posts

Capture.PNG.054ab6fd53c3f1b70b79b9989a28c726.PNG

Hi All im looking for lisp routine that does the following.

1. Generate boundary line by selecting intersecting lines or blocks as shown above.

2. Set the generated boundary to specific layer, say Boundary Lines

 

Thanks in Advance

 

Note: Cannot attach image not sure why. hopefully someone can understand my post :) Thanks

Edited by loudy000
cannot attach image
Link to comment
Share on other sites

Have you tried Bpoly it uses a pick point and makes a boundary.  

(command "_.Bpoly" (getpoint) "")

 (command '_.BPoly" (getpoint) "")

 

Edited by BIGAL
"_.Bpoly"
  • Like 1
Link to comment
Share on other sites

You can use a fence option with ssget crossing the vertical lines to do multiples, pretty sure fence returns the crossing order of objects. Will test.

Can you take a step back and create the bpoly as you create the vertical lines wold be a better way to approach the problem. Please explain more the situation of how you end up with the drawing.

Link to comment
Share on other sites

So the process is we first create those lines using measure command to get exactly the desired area or spacing between plots, the sizes may vary depending on the required area. After that we need to model those plots which requires polylines(closed). 

Link to comment
Share on other sites

3 hours ago, Stefan BMR said:

Hi

You can try the Enclosed Polylines.lsp from here.

Awesome!!! Many thanks!, Can this work with blocks as well?

    (setq ss (ssget ":L" '((0 . "LINE,LWPOLYLINE,ARC,CIRCLE,BLOCK"))))

Tried that but didn't work. Thnks

Link to comment
Share on other sites

The thing you select is not a block, but rather an insert. Try like that

(setq ss (ssget ":L" '((0 . "LINE,LWPOLYLINE,ARC,CIRCLE,INSERT"))))

Cheers

Link to comment
Share on other sites

34 minutes ago, Jef! said:

The thing you select is not a block, but rather an insert. Try like that


(setq ss (ssget ":L" '((0 . "LINE,LWPOLYLINE,ARC,CIRCLE,INSERT"))))

Cheers

Thanks Jef it works for selection only but not for the whole routine as ronjonp was saying

Link to comment
Share on other sites

17 minutes ago, loudy000 said:

Thanks Jef it works for selection only but not for the whole routine as ronjonp was saying

I just replied to your ssget question. I'm not a member of the swamp, therefore I cannot see the routine attached by Lee. Sorry I cannot be of further assistance.

Link to comment
Share on other sites

1 minute ago, Jef! said:

I just replied to your ssget question. I'm not a member of the swamp, therefore I cannot see the routine attached by Lee. Sorry I cannot be of further assistance.

no worries :) see attached if you want to have a look at it. Cheers!

Enclosed polylines.LSP

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