# Commands without dialog box in Civil 3D

**URL:** <https://forum.dynamobim.com/t/commands-without-dialog-box-in-civil-3d/106337>\
**Category:** Civil 3D\
**Created:** [December 4, 2024, 6:40pm UTC](https://forum.dynamobim.com/t/commands-without-dialog-box-in-civil-3d/106337 "2024-12-04T18:40:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mateusc94](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mateusc94](https://forum.dynamobim.com/u/mateusc94)\
**Post date:** [December 4, 2024, 6:40pm UTC](https://forum.dynamobim.com/t/commands-without-dialog-box-in-civil-3d/106337/1 "2024-12-04T18:40:44Z")

</div>

is there any way of executing commands in civil 3d without opening the standard dialog boxes? and thus completing the command automatically with the standard settings?

---

<div class="post-metadata">

**Author:** ![zachri.jensen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/zachri.jensen/32/205331_2.png) [@zachri.jensen](https://forum.dynamobim.com/u/zachri.jensen)\
**Post date:** [December 4, 2024, 7:42pm UTC](https://forum.dynamobim.com/t/commands-without-dialog-box-in-civil-3d/106337/2 "2024-12-04T19:42:04Z")

</div>

Hi @mateusc94,

Some commands (not all) have a pure command line version without dialogs. You can execute this version by preceding the command name with a hyphen.

More info [here](https://help.autodesk.com/view/ACD/2025/ENU/?guid=GUID-A02E1B47-AED7-4308-A6A3-94368852C2D8).

---

<div class="post-metadata">

**Author:** ![mateusc94](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mateusc94](https://forum.dynamobim.com/u/mateusc94)\
**Post date:** [December 4, 2024, 8:06pm UTC](https://forum.dynamobim.com/t/commands-without-dialog-box-in-civil-3d/106337/3 "2024-12-04T20:06:22Z")

</div>

I need to automate the \_AeccAddPressureNetworkLabel command in Civil 3D, however, when I execute this command with Send.Command the following dialog box appears. The idea would be to complete the command automatically without this dialog box appearing. Is this possible?

 ![Captura de tela 2024-12-04 170330](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/6/d61ec43a28978eb7e963a62ae36c4fe5a5b2c404.png)

---

<div class="post-metadata">

**Author:** ![zachri.jensen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/zachri.jensen/32/205331_2.png) [@zachri.jensen](https://forum.dynamobim.com/u/zachri.jensen)\
**Post date:** [December 4, 2024, 8:55pm UTC](https://forum.dynamobim.com/t/commands-without-dialog-box-in-civil-3d/106337/4 "2024-12-04T20:55:50Z")

</div>

No, the purpose of that command is to open the Add Labels dialog, so there is no command line equivalent.

You could look into the individual commands for adding labels, however. For example, `ADDPRESSUREPLANLABELS`.

---

<div class="post-metadata">

**Author:** ![mateusc94](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mateusc94](https://forum.dynamobim.com/u/mateusc94)\
**Post date:** [December 4, 2024, 9:32pm UTC](https://forum.dynamobim.com/t/commands-without-dialog-box-in-civil-3d/106337/5 "2024-12-04T21:32:39Z")

</div>

I tried the ADDPRESSUREPLANLABELS command, but can I automate this object selection?

 ![Captura de tela 2024-12-04 183059](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/b/8bb8016180c7dd074a8e2900d0a8a0741fd7d249.png)

---

<div class="post-metadata">

**Author:** ![zachri.jensen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/zachri.jensen/32/205331_2.png) [@zachri.jensen](https://forum.dynamobim.com/u/zachri.jensen)\
**Post date:** [December 4, 2024, 10:12pm UTC](https://forum.dynamobim.com/t/commands-without-dialog-box-in-civil-3d/106337/6 "2024-12-04T22:12:03Z")

</div>

Is your goal to automate the creation of pressure network labels using Dynamo? If so, then I think you will have more success by making API calls in a Python node than by trying to string together command line prompts.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [December 4, 2024, 10:29pm UTC](https://forum.dynamobim.com/t/commands-without-dialog-box-in-civil-3d/106337/7 "2024-12-04T22:29:42Z")

</div>

> [@zachri.jensen](#):
>
> I think you will have more success by making API calls in a Python node

I’ll second this, and add that a zero touch node would be even more successful as you won’t have to worry about the security risk of IronPython 2 engine lr the often insufficient CPython engine.

---

<div class="post-metadata">

**Author:** ![mateusc94](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mateusc94](https://forum.dynamobim.com/u/mateusc94)\
**Post date:** [December 4, 2024, 10:36pm UTC](https://forum.dynamobim.com/t/commands-without-dialog-box-in-civil-3d/106337/8 "2024-12-04T22:36:07Z")

</div>

Yes, I need to automate it. Would you recommend any API methods?

---

<div class="post-metadata">

**Author:** ![zachri.jensen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/zachri.jensen/32/205331_2.png) [@zachri.jensen](https://forum.dynamobim.com/u/zachri.jensen)\
**Post date:** [December 4, 2024, 10:54pm UTC](https://forum.dynamobim.com/t/commands-without-dialog-box-in-civil-3d/106337/9 "2024-12-04T22:54:54Z")

</div>

Depends on the type of label that you want to create, but to start with you could try the `PressurePipeLabel` class. There is a `Create()` method available that you can use.

---

<div class="post-metadata">

**Author:** ![mateusc94](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mateusc94](https://forum.dynamobim.com/u/mateusc94)\
**Post date:** [December 7, 2024, 12:21pm UTC](https://forum.dynamobim.com/t/commands-without-dialog-box-in-civil-3d/106337/10 "2024-12-07T12:21:10Z")

</div>

I need to add a Pressure Pipe Plan Label to existing Pressure Pipes.  
I’m trying to adapt this Create ( ) method to a python node, but I can’t find and access the INPUT ObjectId labelStyleId. Do you have any tips for this task?  
C#  
public static ObjectId Create(  
ObjectId pipeId,  
double ratio,  
ObjectId labelStyleId  
)
