- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, all.
I'm a big fan but still quite a newbie when it comes to lisp routines.
I'd like to select an element (say a polyline), then call a lisp routine that would call the command "Reverse" to reverse the direction of that element, then re-select the element it just reversed (it annoys me that after I call the "Reverse"command it just deselects it afterwards).
Here's what I have so far:
(defun c:RV () (command "Reverse") (command "PSelect" "P" "") )
If i just call "Reverse" in ACAD with the element selected, it just does its job then ends the command, no questions asked. However, when running this lisp it still asks to select an element, even though one is already selected.
This is what I get:
RV Reverse Select line, polyline, spline or helix to reverse direction: Select objects: PSelect *Invalid selection* Expects a point or yada, yada, yada... ; error: Function cancelled Select objects:
I just want to keep that element selected so I can work with the selection grips right after...
Can anyone help me here? If it's not too much trouble, also explain why it did not work in the first place?
Much appreciated,
Edgar
Solved! Go to Solution.