# Run an AutoCAD command after a node finishes

**URL:** <https://forum.dynamobim.com/t/run-an-autocad-command-after-a-node-finishes/82933>\
**Category:** Civil 3D\
**Created:** [November 9, 2022, 4:35am UTC](https://forum.dynamobim.com/t/run-an-autocad-command-after-a-node-finishes/82933 "2022-11-09T04:35:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![raul.07.11](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@raul.07.11](https://forum.dynamobim.com/u/raul.07.11)\
**Post date:** [November 9, 2022, 4:35am UTC](https://forum.dynamobim.com/t/run-an-autocad-command-after-a-node-finishes/82933/1 "2022-11-09T04:35:42Z")

</div>

Oh, I didn’t know. Thanks for Camber. It’s great.  
I have a question: when I create a corridor surface using Camber the property sets for surfaces that I have don’t get attached to the corridor surface. I have to do a regen. Is there a way to change that? Or a way to do a regen after creating the surface? Thanks again for your response.

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [November 9, 2022, 5:00am UTC](https://forum.dynamobim.com/t/run-an-autocad-command-after-a-node-finishes/82933/2 "2022-11-09T05:00:42Z")

</div>

> [@raul.07.11](#):
>
> Or a way to do a regen after creating the surface?

You could try sending the regen command to the command line. There’s a _SendCommand_ node that might work.

---

<div class="post-metadata">

**Author:** ![raul.07.11](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@raul.07.11](https://forum.dynamobim.com/u/raul.07.11)\
**Post date:** [November 9, 2022, 7:36pm UTC](https://forum.dynamobim.com/t/run-an-autocad-command-after-a-node-finishes/82933/3 "2022-11-09T19:36:15Z")

</div>

The problem is that I need to send the REGEN command after they surface creation ando I don’t know how. Thanks again for Camber.

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [November 9, 2022, 8:48pm UTC](https://forum.dynamobim.com/t/run-an-autocad-command-after-a-node-finishes/82933/4 "2022-11-09T20:48:41Z")

</div>

> [@raul.07.11](#):
>
> I need to send the REGEN command after they surface creation

You can create a basic gate with a code block. See here:

> [@Draw order and Text Style editing](https://forum.dynamobim.com/t/draw-order-and-text-style-editing/72139/4):
>
> You could add a gate so that downstream operations have to wait for others to complete before they are executed. This is commonly done with a simple code block: [passThrough, waitFor][0];
