This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun c:DIVPL ( / ss ent obj len interval counter param pt output_file file_path temp_path ) | |
(vl-load-com) ; Load Visual LISP functions | |
;; Get the path to the user's temporary directory | |
(setq temp_path (getenv "TEMP")) | |
;; Use MILLISECS for a unique temporary file name | |
(setq file_path (strcat temp_path "\\polyline_points_" (itoa (getvar "MILLISECS")) ".txt")) | |
;; --- Check for existing selection --- | |
(setq ss (ssget "_I")) ; Get implicit selection set (already selected objects) |
OlderNewer