(defun c:PXYZ
( / *error* del des ent idx lst obj ord out rtn sel
)
)
)
)
(setq ord '
("POINT" POINT
-X POINT
-Y
"ELEV" ) del ","
)
)
'(point-x point-y point-z)
)
)
)
)
)
)
)
)
(princ (strcat "\nUnable to open file: \"" out
"\" for writing.")) )
)
)
;; List to String - Lee Mac
;; Concatenates each string in a list, separated by a given delimiter
(defun LM:lst
->str
( lst del
) )
)
;; Unique Filename - Lee Mac
;; Returns a unique filename for a given path & file extension
(defun LM:uniquefilename
( pth ext
/ fnm tmp
) )
)
fnm
)
;; Alphanumerical Sort-i - Lee Mac
;; Sorts a list of strings containing a combination of alphabetical & numerical characters and returns the indices.
(defun LM:alphanumsort
-i
( lst
) (= x y)
)
)
)
( (< x y))
)
)
)
)
)
;; Split String - Lee Mac
;; Splits a string into a list of text and numbers
(defun LM:splitstring
( str
) (
(vl-list->string
)
;(and (= 45 b) (< 47 c 58) (not (< 47 a 58)))
(and (= 46 b
) (< 47 a
58) (< 47 c
58)) )
)
)
)
)
)
)
)
")"
)
)
)
)
)