
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Please see the attached pic. If I want to extract the starting x coordinate of a polyline with AutoLISP (which I've highlighted in the Properties window), I would use the vlax-curve-getstartpoint command, yes? What is the next step in the code to use just the "X" coordinate w/o the "Y" and "Z"?
More specifically, I need the polyline in question to go to a specified layer, based on its length. This length would come from a list of hard-coded values Here's what I have so far...
((and (eq (vla-get-objectname b) "AcDbPolyline") ;; check object is POLYLINE
(setq c (vlax-curve-getstartpoint)) ;; Get start point
(vl-some '(lambda (x)
(equal)
)
'(30 40 50 60
) ;;
) ;; Check whether the x coordinate start point is matched with the list if matches then do this
)
(addprop b "HILMOT-SENSORS")
Thanks in advance for any help!
Solved! Go to Solution.