Jump to content

Recommended Posts

Posted

Wow,that was a quick reply and it works great, thanks a lot! Seems very easy for you, how long have you been programming lsp's? Hope I could learn this too. Thanks again.

  • 3 years later...
Posted

Ok, I can use lisp or other things, but WHY I CANT SET RADIUS WITH THIS MACRO:

 

^C^C_FILLET;_R;20

 

it should activate fillet, set radius to 20 and stop. Since after setting radius, fillet command asks to select first object, my macro should stop and AutoCAD should ask me to select the first object. NO WAY. Try it and you can see it's a BUG: the macro finish its work and AutoCAD exits from fillet command without asking me to select the first object. Try if you don't believe. I'm using AutoCAD 2012, 2013 and AutoCAD 2014

Posted

Mtrasi, it isn't a bug, is just how command worked in old versions:

(command "_FILLET" "_R" 15.0)

Vs.

(initcommandversion 19)
(command "_FILLET" "_R" 15.0 pause pause)

 

 

To solve your macro issue, please check this workaround:

^C^C_FILLET;_R;20[color=magenta];_FILLET;[/color]

Posted

I didn't remember.. Thanks, it's true, in older versions it worked that way. I already solved it like this

^C^C_FILLETRAD;20;_FILLET

but now I know why it didn't work in the other way!

I didn't know about

initcommandversion

too, Thanks for this suggestion!

Posted

The point is to preserve compatibility with older third-part tools (menu macros, AutoLISP routines) that were currently in use.

Other approach is by QAFLAGS system variable:

(setvar "QAFLAGS" 1)
(command "_FILLET" "_R" 10 pause pause)
(setvar "QAFLAGS" 0)

  • 1 year later...
Posted
Thanks Alan,

 

your lisp works but is there no way to keep the command alive so i can fillet 10 lines all at a radius of 1 for example.

 

like lets say i have 40 driveways that all need a 20' radius connecting to the street, i just type FR, then enter 20 as a radius, and I can continue in the same command for all 80 lines instead of having to keep hitting the space bar or reentering the command?

 

I had it on LDD 2005, so I know its possible... I just know know how to make it work.

 

Man I really wish I could get your guys help on creating some good construction notes too!!

 

I know this is an old thread, but in case someone else comes searching, you can use the world MULTIPLE in front of many commands to make them keep repeating, and it works with FILLET. In a macro, you'd need to add a space or a semi colon.

 

Can anyone post the command to get the current FILLET radius setting (which I see above), then return it to that captured setting at the end of the LISP? Error trapping would be great too. Just those LISP statements, nothing extra, so I can sort out what I need to fix in my LISP.

 

The ones listed here do not work. Thanks!

Posted

What also works is to add an asterisk to the Autocad fillet macro, thusly:

[color=red]*[/color]^C^C_fillet

You still have to set the radius, but then you can fillet 'til the cows come home.

 

 

Steve

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...