Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello there,
I'm asking for a lisp code that converts a Points [list] object that's obtained by the following command
(setq P2 (entsel "\nSelect Polyline : "))
to [entity name] type
(defun fnOK ( aVar / )
(IF (= (type aVar) 'ENAME)
(princ "OK")
(princ "FAULT !!!!!!!!!!!!!!!!!")
)
(princ)
)
(defun fnConvertPointsListToEname ( aVar / RET)
(setq RET aVar)
RET
)
(defun c:test ( / )
(setq ss (ssget "_X" '((0 . "LWPOLYLINE"))))
(setq P1 (ssname ss 0))
(fnOK P1)
(setq P2 (entsel "\nSelect Polyline : "))
(fnOK (fnConvertPointsListToEname P2))
)
thanks
Solved! Go to Solution.