Jump to content

ReverseLines.lsp (Reverse Direction of Lines, PLines, Splines)


Recommended Posts

Posted (edited)

Allows user to reverse direction of selected Lines, LWPolylines and Splines.

 

Call with: ReverseLines or RL

 

ReverseLines.gif

 

 

Updated: 03.19.10

ReverseLines.LSP

Edited by alanjt
Posted
Allows user to reverse direction of selected Lines, LWPolylines and Splines.

 

Call with: ReverseLines or RL

 

[ATTACH]18182[/ATTACH]

 

Alan, how to reverse start and end point of arc??? I thought there was a way without lisp? i.e. to initially construct said arc?

S

 

:glare:

Posted

Code updated (above), basically with a complete rewrite. I released this a little too early. :oops:

  • 8 months later...
Posted
Code re-posted.

 

Wow. That was fast. Like poof! magic genie fast. LOL.

 

Thanks so much, Alan!

Posted
Wow. That was fast. Like poof! magic genie fast. LOL.

 

Thanks so much, Alan!

Thank eMail notification. You're welcome; enjoy.
Posted
Thank eMail notification. You're welcome; enjoy.

 

Yeah, just joined the site today and it looks great. Another question: is there a visual way to display the direction of lines (like an arrow or some other indicator), prior to changing the direction?

Posted
Yeah, just joined the site today and it looks great. Another question: is there a visual way to display the direction of lines (like an arrow or some other indicator), prior to changing the direction?
A "quick" way could be to temporarily set the line to a complex line type with a V rotated to point in the direction of the line. Otherwise you could add something in lisp which just draws an arrow representation using something like grdraw.

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