TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: vladimirzm on July 24, 2008, 12:01:51 AM

Title: key for a distance
Post by: vladimirzm on July 24, 2008, 12:01:51 AM
i have to type 0.15 and 0.25 many times and it would be nice if some key could do this, for example ctrl+1 for 0.15 and ctrl+2 for 0.25, this keys must work while a command is running specially with polar, otrack and osnaps references  :roll: :
line, clic for first point, move 90 degrees with polar and CTRL+1 (for 0.15), 3rd clic ...
Title: Re: key for a distance
Post by: ronjonp on July 24, 2008, 12:11:09 AM
What are you doing with these values?
Title: Re: key for a distance
Post by: vladimirzm on July 24, 2008, 12:13:11 AM
offset, move, copy, draw lines plines ...
Title: Re: key for a distance
Post by: alanjt on July 24, 2008, 12:16:57 AM
you could easily do this as 'temporary key overrides' (i'm pretty sure that's the name). just make sure you remove the ^C^C from the beginning so it will stay in your active command.
Title: Re: key for a distance
Post by: vladimirzm on July 24, 2008, 12:28:35 AM
well i have tried but i don't get it work
Title: Re: key for a distance
Post by: vladimirzm on July 24, 2008, 12:31:43 AM
What are you doing with these values?
i mean, here we usually build with bricks, and the standard is to draw walls with distances 0.10, 0.15, and 0.25 for every side of brick, then is very usefull pres one (or two) keys instead of three or four if you need this all the time.
Title: Re: key for a distance
Post by: Kerry on July 24, 2008, 01:24:31 AM

Probably the easiest way is to add the values to your default RightClick Menu ... easy to do and maintain .. or it used to be :-)
Title: Re: key for a distance
Post by: CAB on July 24, 2008, 07:54:11 AM
If you could be more specific there may be a custom lisp that would do the job.
A DWG with before and after examples would do nicely.

As for COMMANDs the 0.10 can be entered as .1 and 0.15 as .15