Circle setting to automatically define diameter

Circle setting to automatically define diameter

Ingrid91
Enthusiast Enthusiast
2,768 Views
10 Replies
Message 1 of 11

Circle setting to automatically define diameter

Ingrid91
Enthusiast
Enthusiast

Hi,

 

Does anyone know the command/setting to make it so that when making a circle the value written is automatically the diameter, and not the radius?

 

When working with pipes for water and storm water we never define them by their radius, and only by their diameter, so it would be neat to eliminate one step, since I've numerous times written the diameter and had to go back to change it.

 

Thanks!

0 Likes
Accepted solutions (1)
2,769 Views
10 Replies
Replies (10)
Message 2 of 11

Valentin_CAD
Mentor
Mentor

@Ingrid91 ,

 

Consider using the Circle Diameter option.

 

ValentinWSP_0-1705409628076.png

 

Unless you are using Civil 3D parts catalog:



Select the "Mark as Solution" if my post solves your issue or answers your question.

Seleccione "Marcar como solución" si mi publicación resuelve o responde a su pregunta.


Emilio Valentin

0 Likes
Message 3 of 11

Ingrid91
Enthusiast
Enthusiast

The circle diameter option could work, but it seems like a bother to have to select it each time.

 

I'm at present using the command Circle (C) and it automatically defines per radius. Even after choosing the Circle, Center, Diameter from the ribbon menu that choice doesn't stay the next time I use the command Circle (C).

 

Is there something to be done in settings or another command where I can define what I want as my standard?

0 Likes
Message 4 of 11

ВeekeeCZ
Consultant
Consultant

Use the CUI command. Follow the route and change the macro to this:

 

^c^c^p(command "_.circle" pause "_d" pause)(princ) 

 

You can swap the Diameter with Radius commands so the Dia would be the top one.

 

eekeeCZ_0-1705412161165.png

 

0 Likes
Message 5 of 11

Valentin_CAD
Mentor
Mentor

@Ingrid91 ,

 

Another option is to use the CIRCLERAD (System Variable).



Select the "Mark as Solution" if my post solves your issue or answers your question.

Seleccione "Marcar como solución" si mi publicación resuelve o responde a su pregunta.


Emilio Valentin

0 Likes
Message 6 of 11

Kent1Cooper
Consultant
Consultant
Accepted solution

Or, define yourself a little command, which you have the choice of either typing in or putting into a Tool Palette button or whatever, and which will be recalled immediately after with Enter/space just as any other command, etc.:

 

(defun C:CD () (command "_.circle" pause "_diameter"))

Kent Cooper, AIA
Message 7 of 11

Ingrid91
Enthusiast
Enthusiast

How I draw a circle:

- Command C

- Click on the screen where the center of the circle should go

- Write the dimensions (which CAD has automatically decided should be radius)

- If I want the diameter at once I need to press down D (diameter) before writing in the dimension

 

I have tried your written solution in several steps. Between each step I closed down CAD and opened a new model, and tried to draw a circle.

1. Simply moving the <Center, Diameter> above <Center, Radius>

2. Changing the text of the Macro to: "^c^c^p(command "_.circle" pause "_d" pause)

3. Changing the text of the Macro to: "^c^c^p(command "_.circle" pause "_d" pause)(princ)

 

None make it so that the command C allows you to automatically write the dimension.

 

Perhaps I need to reboot the whole computer, but that won't happen until tomorrow.

 

Ingrid91_0-1705415487888.png

 

0 Likes
Message 8 of 11

ВeekeeCZ
Consultant
Consultant

@Ingrid91 wrote:

 

None make it so that the command C allows you to automatically write the dimension.

 


Right, sorry about that. My suggestion just allowed you to repeat that command previously started from Ribbon. 

If you want to launch this command by C, you need to do what Kent suggests (and replace CD with just C).

0 Likes
Message 9 of 11

Ingrid91
Enthusiast
Enthusiast

Thanks for all your replies!

 

The defun alternative solved it. Now when I write CD I automatically get to choose the diameter.

 

Is there a possibility to add a description to it, so that when I write CD it will say in the command line: CD (circle diameter)?

0 Likes
Message 10 of 11

Kent1Cooper
Consultant
Consultant

@Ingrid91 wrote:

....

Is there a possibility to add a description to it, so that when I write CD it will say in the command line: CD (circle diameter)?


There are simpler ways, but this seems to be a "clean" way to do it, which suppresses the regular command's prompt with options you don't want to see [so far without *error* handling to ensure resetting of the CMDECHO System Variable]:

 

(defun C:CD (/ cmde)
  (setq cmde (getvar 'cmdecho))
  (setvar 'cmdecho 0)
  (prompt "\nCenter of Circle to be sized by Diameter: ")
  (command-s "_.circle" pause "_diameter")
  (setvar 'cmdecho cmde)
  (prin1)
)

Kent Cooper, AIA
0 Likes
Message 11 of 11

ВeekeeCZ
Consultant
Consultant

@Kent1Cooper wrote:
... to ensure resetting of the CMDECHO System Variable...

 

You already did this by using command-s.

0 Likes