Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Im trying to figure out how to get the start and end point of two different lines so I can pass it to the align command. How might I go about that? Thanks
(defun c:tyty ()
(setq Sline (entsel "\nSelect Source property line: "))
(command "_.flatten" Sline "" "")
(setq Sline (car Sline))
(setq Dline (car (nentsel "\nSelect Destination property line: ")))
(setq
1stS (vlax-curve-getStartPoint Sline)
2ndS (vlax-curve-getEndPoint Sline))
(setq
1ndD (vlax-curve-getStartPoint Dline)
2ndD (vlax-curve-getEndPoint Dline))
(print 1stS)
(print 2stS)
(print 1stD)
(print 2stD)
)
Solved! Go to Solution.