FILLET LISP
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
FILLET LISP
Post new topic   Reply to topic    CADForums.net Forum Index -> AutoCAD

Author Message
Josh Limas



Joined: 18 Aug 2010
Posts: 4

Posted: Wed Aug 18, 2010 12:59 pm    Post subject: FILLET LISP Reply with quote

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
View user's profile Send private message
CarlB



Joined: 27 Sep 2005
Posts: 121

Posted: Wed Aug 18, 2010 3:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Josh Limas



Joined: 18 Aug 2010
Posts: 4

Posted: Wed Aug 18, 2010 5:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
CarlB



Joined: 27 Sep 2005
Posts: 121

Posted: Wed Aug 18, 2010 7:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Josh Limas



Joined: 18 Aug 2010
Posts: 4

Posted: Wed Aug 18, 2010 7:25 pm    Post subject: Reply with quote

If I just type in the command prompt fillet, it works.
Back to top
View user's profile Send private message
CarlB



Joined: 27 Sep 2005
Posts: 121

Posted: Wed Aug 18, 2010 7:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Josh Limas



Joined: 18 Aug 2010
Posts: 4

Posted: Thu Aug 19, 2010 11:44 am    Post subject: Reply with quote

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
View user's profile Send private message
CarlB



Joined: 27 Sep 2005
Posts: 121

Posted: Thu Aug 19, 2010 7:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
 
Post new topic   Reply to topic    CADForums.net Forum Index -> AutoCAD All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Access Forum - Microsoft Office Forum - Electronics

Contact Us Powered by phpBB