Jump to content

Multi Segment Poly lines Offset to as a Single Poly line


Recommended Posts

Posted (edited)

Greetings Everyone,

I'am looking for a way to solve this issue,

 

I need to do the offset of Part of Multiple Poly Lines. I have lot of drawing file that need to offset. as per the below image each poly line is placed like multiple lines (I have changed each line as different colors). Is that possible to take offset from P1 to P2, when i click P1 and P2 then offset line will be created as single line. or else is that possible to create a single polyline when i select P1 and P2 over the Line.

 

image.thumb.png.1ad9ef43d1007a65628fc1f6d676729b.png

 

I'm very confused on this, because it's taking tooo much time on taking manual offset and then trim the line.

Someone please help/suggestion me on this.

 

 

 

 

Sample.dwg

Edited by acad1985
Posted (edited)

Something like this its a draw watermain in streets so offsets lines via pick points. Ignore the swap option. Just pick a start point and enter L or R for the side. press enter to end and pline will be created.

 

 

 

 

offset sides pline.lsp

Edited by BIGAL
Posted

Hello Bigal, 

Thanks for the reply and Lisp. I've tried the code that you have attached..Yes it's creates a line (not Polyline) wherever we click.. it's just act as line command... instead of this is it possible if i select start point and move the crosshair over the line and the select end point..so while moving the cursor the Polyline should be created automatically over the line... please suggest me on this.

 

Thanks again.

Posted

When you  press enter to end pick it converts the lines to a single pline if you press esc it will not.

 

Yes could do a pick line thinking about it now but a complete start from scratch have an idea why don't you have a go just copy each line a fixed distance say to right then use pedit to keep joining, do offset of new pline move back and erase the dummy pline. Not very hard write down the manual steps use (ssget (list (cons 0 "LINE"))) to make the selection of lines.

  • 2 weeks later...
Posted
On 3/8/2020 at 4:37 AM, BIGAL said:

Yes could do a pick line thinking about it now but a complete start from scratch have an idea why don't you have a go just copy each line a fixed distance say to right then use pedit to keep joining, do offset of new pline move back and erase the dummy pline. Not very hard write down the manual steps use (ssget (list (cons 0 "LINE"))) to make the selection of lines.

Hi Bigal, 

Sorry for the delay, due to some health issue i couldn't make reply on-time. Actually i'm working on vast area of the landbase. in that the lines are not joined with each other. so while taking offset it's coming multiple pieces of separate lines. after that i need to do Trim / Extend the lines and then join together. this manual steps takes much time.

So i thought if we can create a Polyline between two points over the multiple Lines (Landbase),  we can take offset using that line.(when i move the mouse over the line, the poly line should be created, something like magnetic trace, not sure is this possible or not. or Please suggest the solution.

 

Thanks.

Posted

I have found two related Post's in this site. in both script, we have to select all the lines (multiple) first then it will offset the line as per the Distance we given. but the offset lines also were separated (Multiple), instead of that is possible to take single polyline (connected line) after selecting all Lines (multiple).

Thanks.

Posted

I can not see any real quick answer as your plines are multi segment so some how need to work out which segment is to be offset, if they were lines then could maybe do some form of window pick. And use the idea of filleting multi lines making a single pline.

 

You could pick the segment but that's only like 1 pick less than what I have already offered.

 

That's it for me unless I have a brain wave but the tide just went out.

 

 

 

Posted

@acad1985

What about these steps in a program:

1) Copy all the lines in the selection set.

2) join all the copied lines into a Polyline.

3) offset the Polyline.

4) Explode the new offset polyline.

5) Delete the copied and joined original polyline.

 

That's how I would go about it if I had the time to write the code.

Posted
3 minutes ago, pkenewell said:

@acad1985

What about these steps in a program:

1) Copy all the lines in the selection set.

2) join all the copied lines into a Polyline.

3) offset the Polyline.

4) Explode the new offset polyline.

5) Delete the copied and joined original polyline.

 

That's how I would go about it if I had the time to write the code.

 

Nope... you'll flaw between step 2 and 3. You won't get the expected result

Posted
Just now, Jonathan Handojo said:
1 minute ago, pkenewell said:

@acad1985

What about these steps in a program:

1) Copy all the lines in the selection set.

2) join all the copied lines into a Polyline.

3) offset the Polyline.

4) Explode the new offset polyline.

5) Delete the copied and joined original polyline.

 

That's how I would go about it if I had the time to write the code.

 

Nope... you'll flaw between step 2 and 3. You won't get the expected result

 

Sorry forgot the part about the "only between P1 and P2".

 

1) Copy all the lines in the selection set.

2) join all the copied lines into a Polyline.

3) Recalculate ends of Polyline to selected points P1 & P2 using curve functions.

4) offset the Polyline.

5) Explode the new offset polyline.

6) Delete the copied and joined original polyline.

 

Essentially it would be similar to Lee Mac's program, but just offset to one side and used on a copy of the lines that are joined together first.

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