Message 1 of 34
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I required a LSIP program to select between first point and second point and then it should be joined.
below code i tried, but not working
(defun c:JoinCurvesBetweenPoints ( / pt1 pt2 ss i ent objList)
;; Prompt for the first point
(setq pt1 (getpoint "\nSpecify first point: "))
;; Prompt for the second point
(setq pt2 (getpoint "\nSpecify second point: "))
;; Select objects between the two points
(setq ss (ssget "C" pt1 pt2))
;; Check if any objects were selected
(command "_.pedit" ss "J" "y" "J")
(princ)
)
Solved! Go to Solution.