Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I had a lisp routine where I could pick an object as a source and then its length could be used as the Total Length for a Lengthen command on another object. It looks as if back when this routine worked, calling Lengten updated the System Variable PERIMETER with the length of the object measured. Now that New Total Length variable is stored somewhere else. Can anyone help me get this working?
Thanks
The old routine is this:
;;---------------------=={ AsLongAs}==---------------------;;
;; ;;
;;aslongas matches line length to length of arc, pline or circle;;
;;------------------------------------------------------------;;
(defun C:ASLONGAS (/ cmde obj len)
(setq cmde (getvar "cmdecho"))
(setvar "cmdecho" 0)
(setq obj (car (entsel "\nSelect object to measure: ")))
(command "_.lengthen" obj "")
(setq len (getvar "perimeter"))
(prompt "\nPick end of line to change: ")
(command "_.lengthen" "_t" len pause "")
(setvar "cmdecho" cmde)
(princ)
)
Solved! Go to Solution.