AutoCAD MEP General Discussion

AutoCAD MEP General Discussion

Reply
Active Member
dhagen
Posts: 8
Registered: ‎08-19-2008
Message 1 of 3 (238 Views)

How do I fix this?

238 Views, 2 Replies
05-20-2009 10:44 AM
Hello,
I made the lisp routine below a few years ago to draw a polyline with four points then fillet all the corners of the polyline.
It has always worked in AutoCAD 2008 and earlier versions, but I am getting errors now that I want to use it in AutoCAD MEP 2009.
It isn’t recognizing the “fillet” , “previous”, and “last” commands that AutoCAD 2008 was able to recognize.

It draws the polyline ok but fails once it gets to the fillet command...

Does anybody know what changes I need to make to this lisp routine to make it work in AutoCAD MEP 2009?




Here is the lisp routine:
(defun C:smileytongue:pp () (command "pline" pause pause pause pause cr "fillet" "p" "l"))



Here is what is coming up on the command line...

Command: ppp
pline
Specify start point:
Current line-width is 0'-0"
Specify next point or [Arc/Halfwidth/Length/Undo/Width]:
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]:
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]:
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]:
Command: fillet Unknown command "FILLET". Press F1 for help.
Command: previous Unknown command "PREVIOUS". Press F1 for help.
Command: last Unknown command "LAST". Press F1 for help.
Command: nil
Employee
martin.schmid
Posts: 1,297
Registered: ‎11-16-2005
Message 2 of 3 (238 Views)

Re: How do I fix this?

05-20-2009 12:40 PM in reply to: dhagen
Try:
(defun C:smileytongue:pp () (command "pline" pause pause pause pause cr "_.fillet" "p" "l"))

Note the underscore and period before the fillet.


Martin Schmid, P.E.
Product Manager - Revit MEP
Architecture, Engineering, and Construction
Autodesk, Inc.

Active Member
dhagen
Posts: 8
Registered: ‎08-19-2008
Message 3 of 3 (238 Views)

Re: How do I fix this?

05-20-2009 01:05 PM in reply to: dhagen
Thank you!
That worked!.... I can stop pulling my hair out now.....
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions to get help installing your software.

New AutoCAD MEP Category!

The AutoCAD MEP forum has moved into it's very own category page, and can no longer be found within the Additional Product Forums.