Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My lisp command draws a line from point 1 to point 2, and I later use that line as the 'select path curve' line. Also, when using the routine at a location that is a negative on the x-axis, the array will offset to the left, however if it's on the positive x-axis, it offsets to the right.
It would be awesome if I could:
A) set the path curve line as point 1 to point 2, rather than having to draw a line first and selecting it afterwards(thus saving the user a step).
B)force the arraypath to always array to the right (or towards the positive x-axis direction)
Does anyone have ideas to help?
Thank you,
(defun c:ap10 ( / ss1 a_path pnt1 pnt2) (setvar "cmdecho" 0) (setq pnt1 (getpoint "\nSelect bottom left corner of field area: ")) (setq pnt2 (getpoint "\nSelect bottom right corner of field area: ")) (command "line" pnt1 pnt2 "") (prompt "\nSelect wall on RIGHT side: ") (setq ss1 (entsel)) (setq a_path (car (entsel "\nSelect array path: "))) (if (and ss1 a_path) (command "_arraypath" ss1 "" a_path "" "" "" "_F" "60" "" "") (princ "\nNo array created!") ) (princ) )
Solved! Go to Solution.