Repeating circle feature AUTOCAD 2016

Repeating circle feature AUTOCAD 2016

DanielkrampenV8756
Contributor Contributor
2,795 Views
17 Replies
Message 1 of 18

Repeating circle feature AUTOCAD 2016

DanielkrampenV8756
Contributor
Contributor
I am wondering If anyone has run into this issue I am noticing while using AUTOCAD 2016. I tend to use the space bar for quick repeating of functions. While using the circle feature I tend to select CIRCLE -> CENTER, DIAMETER. When I use the space bar it does repeat the circle feature but it switches it to radius. I am wondering if this is a glitch of design or if I need to set something up in order to automatically keep whichever parameter I choose. I notice it does the same thing with the arc feature. I assume I could just edit my ribbon settings and place my preferred technique on top, but I am hoping there is an easier solution. Thanks everyone in advance for your help!
0 Likes
2,796 Views
17 Replies
Replies (17)
Message 2 of 18

DanielkrampenV8756
Contributor
Contributor
I attempted to simply change the order in my CUI and that did not work. So much for the easy road....
0 Likes
Message 3 of 18

qnologi
Advisor
Advisor

Appears as though when you use the command to draw a circle, choosing to utilize the "diameter" is a secondary menu function, so when you use the command to draw another circle, it "only" can see the first command and not you choosing the "diameter" as a secondary menu function.

 

Hope that helps.

 

Although, in your case, it actually doesn't...

 

Perhaps you could find a .lsp that only caters to drawing a CIRCLE -> CENTER, DIAMETER as you perfer.

qnologi
Message 4 of 18

pendean
Community Legend
Community Legend
Automate with LISP to do what you want, there is no other option: if you are picking from a menu you cannot use the spacebar, you have to right-click and select from the right-click menu wish is the longer method. Editing the CUI all day long will not change this core AutoCAD behavior.
Message 5 of 18

TheCADnoob
Mentor
Mentor

This is a new trick for me 🙂 thanks!

 

For another method you can try, i use the right click customization to repeat command but it too encounters the same issue you are experiencing. 

I will say though if you use the keyboard, for me, my hands as resting on the home row (at least the left hand) so hitting space bar followed by "D" for diameter inst too bad. 

CADnoob

EESignature

Message 6 of 18

rkmcswain
Mentor
Mentor

The following code will define the command "C" to do what you want. Once you execute it, the space bar will repeat it as you desire.

 

;;; 
(defun c:c () (vl-cmdf "._circle" pause "_D"))
;;;
R.K. McSwain     | CADpanacea | on twitter
Message 7 of 18

DanielkrampenV8756
Contributor
Contributor
So this is going to turn into a macro tutorial (I am assuming), how would I go about automating with a lisp?
0 Likes
Message 8 of 18

TheCADnoob
Mentor
Mentor

I would just put it into a txt file that you changed the extenion to .lsp and drag and drop that into CAD. 

CADnoob

EESignature

Message 9 of 18

Kent1Cooper
Consultant
Consultant

@DanielkrampenV8756 wrote:
So this is going to turn into a macro tutorial (I am assuming), how would I go about automating with a lisp?

A macro [called up by a Tool Palette or Toolbar button or other menu item] can do what @rkmcswain suggested an AutoLisp command to do:

^C^CCIRCLE \D

 

It could even automatically repeat itself, if that's of any use to you, with an asterisk added to the beginning of it.

 

However, either of those [or @TheCADnoob's suggested implementation of rkmcswain's definition] is good for only the Diameter option.  They don't do what I think you're really asking for, which is to remember whatever option you last used and offer it as the default next time, rather than always default to asking for the radius, requiring you to designate some other option if that's what you need.  I think that can be done with a more elaborate AutoLisp routine, though I'll have to think about that later....

Kent Cooper, AIA
Message 10 of 18

rkmcswain
Mentor
Mentor
Kent1Cooper wrote:
.... I think that can be done with a more elaborate AutoLisp routine, though I'll have to think about that later....

 

@Kent1Cooper - am I missing something? A menu entry that calls the "c" command (or whatever the user decided to call it, as defined above in lisp), would repeat with the space bar. 

 

 

R.K. McSwain     | CADpanacea | on twitter
Message 11 of 18

DanielkrampenV8756
Contributor
Contributor
So I am noticing this works If I type in circle but I am not seeing a reaction if I use the ribbon and the button (my preferred/ used to technique) Am I going about this all wrong?
0 Likes
Message 12 of 18

rkmcswain
Mentor
Mentor
TheCADnoob wrote:

I would just put it into a txt file that you changed the extenion to .lsp and drag and drop that into CAD. 

Presuming you want the command in a menu, add the appropriate menu entry then place the lisp code inside of the related .MNL file.

For example, if you add your custom menu item to ACAD.CUIX (which I wouldn't do, but save that for later).... then add the lisp code to ACAD.MNL.

This will ensure that the code is always loaded when the menu is loaded.

 

 

R.K. McSwain     | CADpanacea | on twitter
Message 13 of 18

rkmcswain
Mentor
Mentor
DanielkrampenV8756 wrote:
So I am noticing this works If I type in circle but I am not seeing a reaction if I use the ribbon and the button (my preferred/ used to technique) Am I going about this all wrong?

Are you trying to use the lisp code I posted?

Let's presume that the lisp code is loaded (we can expand on that in another post).

Define the command in your CUI file, here is an example: (I renamed the lisp function to "CircleD" as shown here)

(defun c:circleD () (vl-cmdf "._circle" pause "_D"))

 

tbk.png

 

Here is the resulting toolbar. It could be a drop-down menu item, or Ribbon button. No, I didn't take the time to make an icon for it....

 

n334.png

 

Once I click the button and draw a circle, then space bar will repeat the custom command.

 

 

 

 

 

 

R.K. McSwain     | CADpanacea | on twitter
Message 14 of 18

Kent1Cooper
Consultant
Consultant

@rkmcswain wrote:
@Kent1Cooper wrote:
.... I think that can be done with a more elaborate AutoLisp routine, though I'll have to think about that later....

@Kent1Cooper - am I missing something? A menu entry that calls the "c" command (or whatever the user decided to call it, as defined above in lisp), would repeat with the space bar.


You're missing the OP's desire "to automatically keep whichever parameter I choose" [Post 1], which is not the same as what your command does [it always uses the option they say they most commonly use, but does not allow for choosing any other option/parameter and then remembering that next time].

Kent Cooper, AIA
Message 15 of 18

rkmcswain
Mentor
Mentor
Got it @Kent1Cooper - I knew I missed something.
You're right, more code is needed.
Cheers....
R.K. McSwain     | CADpanacea | on twitter
Message 16 of 18

ВeekeeCZ
Consultant
Consultant

 

You can copy/paste the icons from the original

Small: RCDATA_16_CIRDIA

Large: RCDATA_32_CIRDIA

 

 

btw. The other very handy lisp is for Break at Point.

(defun c:BREK1 nil (command "_.break" pause "_f" pause "@") (princ))

 

or

my favourite Fillet... directly to Radius settings.

(defun c:R nil (command "_fillet" "_R" pause "_fillet")(princ))

0 Likes
Message 17 of 18

DanielkrampenV8756
Contributor
Contributor
SO HOW DO I MAKE IT INTO A LISP? DO I FOLLOW THE AWESOME VIDEO OR IS THERE A DIFFERENT TECHNIQUE? BECAUSE WHEN i FOLLOW THE VIDEO I AM GETTING LOST SOMEWHERE ALONG THE WAY
0 Likes
Message 18 of 18

ВeekeeCZ
Consultant
Consultant
One more video... with entire procedure.

http://autode.sk/2ajeZy3
0 Likes