abelli12
Guest
I ask who is more experienced than me with the lisp for the solution of two troubles.
1) I would like to create a lisp command that once selected a quota add me in front of the symbol m and behind the text prof.
and then allow me to introduce the numerical value of depth (e.g. for altitude 8 with thread m8 deep 15
becomes m8 prof.15). I have already tried to write the lisp (which I bring back below) but I do not know how to insert the numerical value:
(defun c:f()
(setvar "cmdecho" 0)
(setq entmd (entget (car (entselect dimension: ")))))
(setq entmd(subst (cons 1 "{m<>prof}")(assoc 1 entmd) entmd)
(entmod entmd)
)
2)I would like to create a command that draws the axis of a hole in the section; i.e. selecting the two drawing lines the average axis. How to do that?
Thank you.
1) I would like to create a lisp command that once selected a quota add me in front of the symbol m and behind the text prof.
and then allow me to introduce the numerical value of depth (e.g. for altitude 8 with thread m8 deep 15
becomes m8 prof.15). I have already tried to write the lisp (which I bring back below) but I do not know how to insert the numerical value:
(defun c:f()
(setvar "cmdecho" 0)
(setq entmd (entget (car (entselect dimension: ")))))
(setq entmd(subst (cons 1 "{m<>prof}")(assoc 1 entmd) entmd)
(entmod entmd)
)
2)I would like to create a command that draws the axis of a hole in the section; i.e. selecting the two drawing lines the average axis. How to do that?
Thank you.

