Jeff Kogut
Usenet Archive
- Joined
- Sep 10, 2003
- Messages
- 1
- Reaction score
- 0
Hello,
I've been using a script for years that I've really gotten used to, but I'm not up to speed with AutoLisp. It's called 'Cut' and it uses the Break command. I've recently moved to a company that uses AutoCAD 2002 and it seems they've revised the Break command and my script no longer works.
;;;CUT command, added by Jeff Kogut 9/8/03
;To use CUT routine, first select the line you want to cut, ; then select the point where you wnat it cut. You can use ;all OSNAP options in defining the cut point.8/9/90 works ; (prompt "Loading CUT utility...") (defun C:CUT (/ pnta pntb) (setvar "cmdecho" 0) (prompt "\nSelect line to break:") (setq pnta (car (entsel))) (setq pntb (getpoint "\nEnter Cut Point: ")) (command "BREAK" pnta "f" pntb pntb) (setvar "cmdecho" 1)
)
Can anyone help? Thanks in advance!
Jeff
I've been using a script for years that I've really gotten used to, but I'm not up to speed with AutoLisp. It's called 'Cut' and it uses the Break command. I've recently moved to a company that uses AutoCAD 2002 and it seems they've revised the Break command and my script no longer works.
;;;CUT command, added by Jeff Kogut 9/8/03
;To use CUT routine, first select the line you want to cut, ; then select the point where you wnat it cut. You can use ;all OSNAP options in defining the cut point.8/9/90 works ; (prompt "Loading CUT utility...") (defun C:CUT (/ pnta pntb) (setvar "cmdecho" 0) (prompt "\nSelect line to break:") (setq pnta (car (entsel))) (setq pntb (getpoint "\nEnter Cut Point: ")) (command "BREAK" pnta "f" pntb pntb) (setvar "cmdecho" 1)
)
Can anyone help? Thanks in advance!
Jeff