| Author |
Message |
Josh Limas
Joined: 18 Aug 2010
Posts: 4
|
Posted:
Wed Aug 18, 2010 12:59 pm Post subject:
FILLET LISP |
|
|
Hi there,
I originally created a shortcut by just typing FRD it will do fillet command with specified radius, wayback in Autocad 2000. I was able to use this to different version of autocad up to 2007 with no problem. But for some reason I can’t make it work in 2008. Can somebody help me fix it.
(defun c:FRD (/)
(setvar "cmdecho" 1)
(command "FILLET" "R" pause "fillet")
(princ)
)
|
|
| Back to top |
|
 |
CarlB
Joined: 27 Sep 2005
Posts: 121
|
Posted:
Wed Aug 18, 2010 3:31 pm Post subject:
|
|
|
That syntax doesn't look like what you'd enter on the command line. What is the error message on the command line when you run it? I think there has been a change to fillet command, it doesn't quit when you supply a radius as it did in earlier versions. So add an "enter" after the pause, as in:
(command "fillet" "r" pause "" "fillet")
-or-
(command "fillet" "r" pause pause pause)
but since fillet command has changed, maybe this lisp doesn't save any keystrokes from just using the regular command. |
|
| Back to top |
|
 |
Josh Limas
Joined: 18 Aug 2010
Posts: 4
|
Posted:
Wed Aug 18, 2010 5:40 pm Post subject:
|
|
|
i tried both suggestions but neither work. Here's the message i got; Command: frd Unknown command "FILLET"
Thanks for your time. |
|
| Back to top |
|
 |
CarlB
Joined: 27 Sep 2005
Posts: 121
|
Posted:
Wed Aug 18, 2010 7:20 pm Post subject:
|
|
|
I tried the routine you posted and it worked for me. I'm using 2008. As I recall, using commands in lisp revert to the earlier syntax, so my suggestions don't work but yours should. (and did for me).
The "fillet" unknown command looks odd; does "fillet" work on the command line? |
|
| Back to top |
|
 |
Josh Limas
Joined: 18 Aug 2010
Posts: 4
|
Posted:
Wed Aug 18, 2010 7:25 pm Post subject:
|
|
|
| If I just type in the command prompt fillet, it works. |
|
| Back to top |
|
 |
CarlB
Joined: 27 Sep 2005
Posts: 121
|
Posted:
Wed Aug 18, 2010 7:44 pm Post subject:
|
|
|
can you post more what your command line reads when you type "frd". Here's mine:
Command: frd FILLET
Current settings: Mode = TRIM, Radius = 0.3000
Select first object or [uNdo/Polyline/Radius/Trim/mUltiple]: R Specify fillet
radius <0.3000>: .5
Command: fillet
Current settings: Mode = TRIM, Radius = 0.5000
Select first object or [uNdo/Polyline/Radius/Trim/mUltiple]:
Select first object or [uNdo/Polyline/Radius/Trim/mUltiple]:
Select second object or shift-select to apply corner: |
|
| Back to top |
|
 |
Josh Limas
Joined: 18 Aug 2010
Posts: 4
|
Posted:
Thu Aug 19, 2010 11:44 am Post subject:
|
|
|
This is in 2008:
Command: frd FILLET Unknown command "FILLET". Press F1 for help.
Command: R Unknown command "R". Press F1 for help.
In 2007 & earlier;
Command: frd FILLET
Current settings: Mode = TRIM, Radius = 12.0000
Select first object or [uNdo/Polyline/Radius/Trim/mUltiple]: R Specify fillet
radius <12.0000>: .5
Command: fillet
Current settings: Mode = TRIM, Radius = 0.5000
Select first object or [uNdo/Polyline/Radius/Trim/mUltiple]:
Select first object or [uNdo/Polyline/Radius/Trim/mUltiple]:
Select second object or shift-select to apply corner: |
|
| Back to top |
|
 |
CarlB
Joined: 27 Sep 2005
Posts: 121
|
Posted:
Thu Aug 19, 2010 7:19 pm Post subject:
|
|
|
It sure looks like AC is not even recognizing the "fillet" command when issued from lisp, though you can us the command from the command line.
if you type (command "fillet") do you also get unknown command?
maybe your lisp file has some odd character in it, maybe type over the "FILLET" text.
Grasping at straws here... |
|
| Back to top |
|
 |
|
|
|
|