Jump to content

cmdecho for REVERSE command


Jonathan Handojo

Recommended Posts

Hey guys,

 

It seems like a simple question, but somehow I can't get cmdecho to completely disappear upon using (command "_REVERSE" <curve> ""). Is there a way to do this?

 

Or put it simply, if there's another way to reverse curves (except arcs [because you can't reverse those]) without echoing anything down the command line, I'll take that too.

 

[

If you're curious, I've just created a command that:

 

  1. Selects a group of curves excluding arcs (similar to that of the FlowSelect command I built),
  2. Clicks on one of those curves that governs the flow direction to follow, and ultimately;
  3. Fix the flow direction of the entire system

]

 

It's always a good practice to keep your command lines clean, so...

 

Thanks,

Jonathan Handojo

Link to comment
Share on other sites

What are you trying to reverse?

 

IIRC Arcs, Circles and Ellipses are always counterclockwise so can't be reversed

 

Lines can be reversed by swapping the start and endpoints.

 

Lines and Polylines can be reversed using "PEDIT", Lines would have to be converted to polylines so "PEDITACCEPT" would need to be correctly set and the line then exploded. You can also reverse the coordinate list but you would also need to reverse the list of bulges and change their sign if not 0.0

 

Splines can be reversed using "SPLINEDIT"

 

You can capture the return (T or nil) in a variable (setq rtn (vl-cmdf "PEDIT" ...)) if you need to know it is successful or not

  • Like 1
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...