# Find out current layout from Civil3D

**URL:** <https://forum.dynamobim.com/t/find-out-current-layout-from-civil3d/78080>\
**Category:** Civil 3D\
**Tags:** dynamo\
**Created:** [June 27, 2022, 3:37pm UTC](https://forum.dynamobim.com/t/find-out-current-layout-from-civil3d/78080 "2022-06-27T15:37:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [June 27, 2022, 3:37pm UTC](https://forum.dynamobim.com/t/find-out-current-layout-from-civil3d/78080/1 "2022-06-27T15:37:14Z")

</div>

Hi all,

I am trying to find out which Civil3D layout is currently active. I’ve looked into the Civil3DToolkit, Camber and Arkance Systems packages but I couldn’t find any node for this. Also I couldn’t find anything online, on and off the forum which talks about this.

Is there any way at all to even get this information?

---

<div class="post-metadata">

**Author:** ![WrightEngineering](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/wrightengineering/32/115676_2.png) [@WrightEngineering](https://forum.dynamobim.com/u/WrightEngineering)\
**Post date:** [June 27, 2022, 4:35pm UTC](https://forum.dynamobim.com/t/find-out-current-layout-from-civil3d/78080/2 "2022-06-27T16:35:23Z")

</div>

I can try to code this when I have a moment. For now here is an example:

> **[Identifying active space and active layout](https://adndevblog.typepad.com/autocad/2012/06/identifying-active-space-and-active-layout.html)**
>
> By Virupaksha Aithal Database.CurrentSpaceId holds a objectID to current space. You can use this variable to identify whether the active space is model space or paper space. With use of “LayoutManager”, you can identify the current layout....

---

<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:** [June 27, 2022, 4:39pm UTC](https://forum.dynamobim.com/t/find-out-current-layout-from-civil3d/78080/3 "2022-06-27T16:39:13Z")

</div>

> [@Daan](#):
>
> Is there any way at all to even get this information?

Always 😉  
I can add this to Camber in the next release.

```auto
import clr

from Autodesk.AutoCAD.DatabaseServices import *

OUT = LayoutManager.Current.CurrentLayout

```

 ![layout](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/7/b7ffff0ff433ca66f53e4feab65c6b4b7f19cd48.png)

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [June 27, 2022, 5:27pm UTC](https://forum.dynamobim.com/t/find-out-current-layout-from-civil3d/78080/4 "2022-06-27T17:27:16Z")

</div>

Works GREAT! Thanks a lot! 😃

> [@zachri.jensen](#):
>
> I can add this to Camber in the next release.

Good idea! Especially since some things don’t always work in Civil3D when trying to access information on layouts which aren’t open/ loaded.

And it saves me from having to add a selection option for the end user 😃

---

<div class="post-metadata">

**Author:** ![Anton\_Huizinga](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/anton_huizinga/32/155377_2.png) [@Anton\_Huizinga](https://forum.dynamobim.com/u/Anton_Huizinga)\
**Post date:** [June 27, 2022, 5:51pm UTC](https://forum.dynamobim.com/t/find-out-current-layout-from-civil3d/78080/5 "2022-06-27T17:51:32Z")

</div>

Funny that such simple thing is not available yet.

With the Arkance Systems Node Library you could do this:

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/a/aa6da81cce6c9616160a7567d17f7d19449c76cf.png)

But that only works if you know the variable name (now you know this one 😉 )

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [June 27, 2022, 8:51pm UTC](https://forum.dynamobim.com/t/find-out-current-layout-from-civil3d/78080/6 "2022-06-27T20:51:18Z")

</div>

Didn’t even think about System Variables! Let alone that the current active view would be one.  
Will sure look into all the System Variables to see if there are some interesting ones 😃

> [@Anton\_Huizinga](#):
>
> Funny that such simple thing is not available yet.

Also, it kinda is avalaible right? Not just in a conventional way using nodes created by others.

---

<div class="post-metadata">

**Author:** ![WrightEngineering](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/wrightengineering/32/115676_2.png) [@WrightEngineering](https://forum.dynamobim.com/u/WrightEngineering)\
**Post date:** [June 27, 2022, 9:04pm UTC](https://forum.dynamobim.com/t/find-out-current-layout-from-civil3d/78080/7 "2022-06-27T21:04:16Z")

</div>

So many system variables are available. The possibilities…

> **[AutoCAD%20System%20Variables.pdf](https://forums.autodesk.com/autodesk/attachments/autodesk/706/141573/1/AutoCAD%20System%20Variables.pdf)**
>
> 488.86 KB

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [June 27, 2022, 10:05pm UTC](https://forum.dynamobim.com/t/find-out-current-layout-from-civil3d/78080/8 "2022-06-27T22:05:02Z")

</div>

I feel like my brain unlocked a new part by seeing how this System Variable is stored:

 ![20220628_000315](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/2/9227bbad503b9ef822389d81294bd4d8d4bb3c84.jpeg)

---

<div class="post-metadata">

**Author:** ![Anton\_Huizinga](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/anton_huizinga/32/155377_2.png) [@Anton\_Huizinga](https://forum.dynamobim.com/u/Anton_Huizinga)\
**Post date:** [June 28, 2022, 6:55am UTC](https://forum.dynamobim.com/t/find-out-current-layout-from-civil3d/78080/9 "2022-06-28T06:55:41Z")

</div>

> [@Daan](#):
>
> Also, it kinda is avalaible right? Not just in a conventional way using nodes created by others.

Variables are always available, but in Dynamo you need a node for that (like the one in de Arkance Systems Node Library) or Python.

In AutoCAD you can walk through them with the command SYSVDLG.

---

<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:** [July 1, 2022, 6:23pm UTC](https://forum.dynamobim.com/t/find-out-current-layout-from-civil3d/78080/10 "2022-07-01T18:23:06Z")

</div>

There’s a node for this in Camber starting in v4.0.0.

 ![active layout](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/2/d2ec712ab2c36c217b079b390ebbc2ad6c8e77db.png)
