# Corridor Shape Information

**URL:** <https://forum.dynamobim.com/t/corridor-shape-information/63866>\
**Category:** Civil 3D\
**Tags:** dynamo\
**Created:** [May 12, 2021, 11:03am UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866 "2021-05-12T11:03:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![grastar](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@grastar](https://forum.dynamobim.com/u/grastar)\
**Post date:** [May 12, 2021, 11:03am UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/1 "2021-05-12T11:03:29Z")

</div>

Hi  
I am new to dynamo for C3D so apologies if this has been ask’d before, I am wanting to calulate the length of a 3dSolid, as we know C3D only gives the volume, however if we can take the end and start assembly stations and make a small subtraction this will give us the much needed lengths.

This coud then be exprted to csv and the estimators wouldnt have to use the measureing tool in Navis.

Can anyone help, see attached image

 ![CorridorShapeInformation1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/d/ed59a1ca5e1644b430306779081c55576d9f1f47.jpeg)

---

<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:** [May 12, 2021, 3:24pm UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/2 "2021-05-12T15:24:31Z")

</div>

Hi @grastar,

Is this what you’re looking for?

[GetCorridorSolidLength.dyn](https://forum.dynamobim.com/uploads/short-url/gIxa3uG5n7nCy3UE70iSVrZEVcR.dyn) (94.6 KB)

 ![Lengths](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/f/9f215149c3427fc0d35c44c3c05356a60e182d39.png)

---

<div class="post-metadata">

**Author:** ![grastar](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@grastar](https://forum.dynamobim.com/u/grastar)\
**Post date:** [May 12, 2021, 4:12pm UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/3 "2021-05-12T16:12:16Z")

</div>

Hi mzjensen

Thank you so much, no sure what happen but got some warnings, see attached, there are more then 12 solids as well? I can send the Navis file if that helps as the C3D file is 90MB?

 ![GetCorridorSolidLength](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/1/31448ab609aee1cb4d6033775947220b0b0ebd09.jpeg)

---

<div class="post-metadata">

**Author:** ![grastar](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@grastar](https://forum.dynamobim.com/u/grastar)\
**Post date:** [May 12, 2021, 4:21pm UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/4 "2021-05-12T16:21:33Z")

</div>

are you allowed to share your email address?

---

<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:** [May 12, 2021, 4:25pm UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/5 "2021-05-12T16:25:19Z")

</div>

Can you show the beginning of the script? Also please hover over the first warning in the sequence so we can see what it says.

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [May 12, 2021, 4:27pm UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/6 "2021-05-12T16:27:49Z")

</div>

Hi @grastar

Are you interested getting the length using python?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/9/69b308da18d2243d1f622b8eab8e1757807fd04f.png)

---

<div class="post-metadata">

**Author:** ![grastar](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@grastar](https://forum.dynamobim.com/u/grastar)\
**Post date:** [May 13, 2021, 8:47am UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/7 "2021-05-13T08:47:28Z")

</div>

Hi  
See attched, do I need to add the individual strings?  
 ![CorridorShapeInformation3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/e/8e759229b741c6af6fe9b69424729c550b4d4305.jpeg)

---

<div class="post-metadata">

**Author:** ![grastar](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@grastar](https://forum.dynamobim.com/u/grastar)\
**Post date:** [May 13, 2021, 8:53am UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/8 "2021-05-13T08:53:33Z")

</div>

Hi Kulkul  
Happy to use anything that allows for a collaborative out put of data from a Civils3D model, it would be better if all the 3d solids and there start/end stations and the length calculation can be output into a csv file, this would make it very efficent for our BIM & estimating teams. We have 20+ models that are built in C3D that do not push out the required quantum for expediant 5d BIM. Any help is most appreciated

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [May 13, 2021, 10:16am UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/9 "2021-05-13T10:16:45Z")

</div>

> [@grastar](#):
>
> it would be better if all the 3d solids and there start/end stations and the length calculation can be output into a csv file

In that case refer to @zachri.jensen graph.

---

<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:** [May 13, 2021, 2:07pm UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/10 "2021-05-13T14:07:34Z")

</div>

That means that there is something going on with the node before it. What is the output of the _Corridors_ node?

---

<div class="post-metadata">

**Author:** ![grastar](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@grastar](https://forum.dynamobim.com/u/grastar)\
**Post date:** [May 13, 2021, 3:17pm UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/11 "2021-05-13T15:17:55Z")

</div>

Hi  
See attached, it captures 12 corridors which is correct

 ![CorridorShapeInformation4](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/6/a6262f868a4c6a5d590a9f8b42435e2647dcb232.jpeg)  
 ![CorridorShapeInformation5](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/9/6962f0218178569e96b7320fa233e99af1d92bc2.jpeg)  
 ![CorridorShapeInformation6](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/2/220a998866677aad6cda94d8fd7411205bffa605.jpeg)

---

<div class="post-metadata">

**Author:** ![shahid.shaikh\_C3D](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@shahid.shaikh\_C3D](https://forum.dynamobim.com/u/shahid.shaikh_C3D)\
**Post date:** [May 13, 2021, 3:22pm UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/12 "2021-05-13T15:22:48Z")

</div>

Hi @grastar Just for clarification Corridor.Getsolids node doesn’t create solids like this  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/f/ef11466c6ca6eca457191c23531534589f723158.png)

it rather select the corridor solids which are already there in drawing. so please create corridor solids in the model and then try to get them in dynamo using above node.

Hope this helps

---

<div class="post-metadata">

**Author:** ![grastar](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@grastar](https://forum.dynamobim.com/u/grastar)\
**Post date:** [May 13, 2021, 3:45pm UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/13 "2021-05-13T15:45:07Z")

</div>

Hi, Thank you for your comments, I am not trying to create solids these already exist, see attached image from Navisworks if I open up the same dwg file. It’s just that the solids do not export anything that is quantifiable for BIM quants and our estimators, the more I dig deep the more it’s fustrating that something as simple as a length of something is so hard to achieve.

@zachri.jensen,However just noticed something in the Navis file, maybe we can use the layers to get to the solids, just thinking out loud?

 ![CorridorShapeInformation7](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/2/f2d37686ae6ac2c5f5eb2bf2221ee0bb721190b4.jpeg)

---

<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:** [May 13, 2021, 4:01pm UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/14 "2021-05-13T16:01:13Z")

</div>

Do the corridors have multiple baselines? I’m remembering now that I think the GetSolids node doesn’t work when there are multiple baselines. You could use the _baseline_ input to filter, or select the solids in the drawing by layer. I believe the layer names should be the shape codes (unless you’ve changed it from the default). Another option could be to use _All Objects of Type_ where the type is Solid3d. That would work best if there aren’t any other solids in the drawing.

---

<div class="post-metadata">

**Author:** ![grastar](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@grastar](https://forum.dynamobim.com/u/grastar)\
**Post date:** [May 14, 2021, 4:31pm UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/15 "2021-05-14T16:31:48Z")

</div>

Hi mzjensen

getting a lot closer, see attached images, using Navisisworks to test how things are built by our designers. I thought it would be good to have the Handle of the 3dsolid list in the excel output. Not sure how or where to put the wire?. Note just one yellow warning box?. Thanks for your help in getting me started.

 ![Capture11](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/2/f22d0cae174305b59df2ebad149a1270338f8a20.jpeg)

 ![Capture10](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/d/7d06a53347f007c5b14e7b1fa7d54794328d558e.jpeg)  
 ![Capture12](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/6/26e08a37f5fa00b2a304a906a90803d22d5cc997.jpeg)  
 ![Capture13](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/5/c58943fac4bd93febb0ab03c4deb5316d999f8c6.jpeg)  
 ![Capture14](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/c/8c589d01c97b7bca1697d898705e9b035de0cbb0.jpeg)  
 ![Capture15](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/1/51177792f3d3b50514a7272ea7319c7964e3be3a.jpeg)  
 ![Capture14a](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/6/06cb4ed70ab86c2eda7f6cde110ad6098d64e03b.jpeg)

---

<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:** [May 14, 2021, 4:54pm UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/16 "2021-05-14T16:54:54Z")

</div>

Ah OK, I see. I had written the script assuming that the station values were formatted as 12+34.56’. So the _String.Split_ node and those that follow are to convert that into a usable number (e.g. 1234.56) so that the start can be subtracted from the end. In your case, it looks like the station values are formatted as 1234.56m, so you only need to remove the ‘m’ and then convert the string to a number. Something like this should work:

 ![String](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/d/4d082a8c9d70481adc29d3bf9a4ce3ae6467e7b5.png)

Regarding the handles, you’d just need to add that to whatever list is being exported to Excel. It might look like this:

 ![HandleOutput](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/7/c72a512c88d313f6d6779703e045aa1d9b0dc558.png)

That output would look like this in Excel:

 ![Excel](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/4/a4fce9015980a309a84ac4e042eb3d968d78c200.jpeg)

---

<div class="post-metadata">

**Author:** ![grastar](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@grastar](https://forum.dynamobim.com/u/grastar)\
**Post date:** [May 17, 2021, 10:45am UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/17 "2021-05-17T10:45:04Z")

</div>

Hi mzjensen

Sorry to be a pain, I noticed that it wasnt list the StartStations, so thought I would try to duplicate the ‘Function’ part for AssemblyStartStation, however not sure it wont work? Also noticed the end length is calcuating all the lengths added together this is okay and would be needed, however whats needed is each the length of each object 267 in this case. The 267 is the number of objects is it possible to filter this by layer name this would reduce the list quite a lot.

 ![AssemblyStartStation](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/0/c018aaf08601214bb0602ca724a24edfc7505b4f.jpeg)  
 ![AssemblyStartStation2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/a/0a4f28031149a9a041e4436424e29c5ed8317314.jpeg)  
 ![AssemblyStartStation3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/e/9ef4f90d2be243d027a2d5ec436dc1d91961d39d.jpeg)

---

<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:** [May 17, 2021, 3:27pm UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/18 "2021-05-17T15:27:52Z")

</div>

> [@grastar](#):
>
> I noticed that it wasnt list the StartStations, so thought I would try to duplicate the ‘Function’ part for AssemblyStartStation, however not sure it wont work?

I’m not sure about this without seeing the DWG file.

> [@grastar](#):
>
> Also noticed the end length is calcuating all the lengths added together

Again, this is because the original script was setup to work with + formatted stations. You need to remove these nodes:

 ![InkedAssemblyStartStation2_LI](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/c/9c8b46d96f8813c2291a729e1b522947853af8ef.jpeg)

> [@grastar](#):
>
> is it possible to filter this by layer name this would reduce the list quite a lot.

Get the layer of each object, check for equality with the desired layer, and then use _List.FilterByBoolMask_, like this:

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/b/cba7bafd135b5282cee71d28ffc10bf9965d0705.jpeg)

---

<div class="post-metadata">

**Author:** ![grastar](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@grastar](https://forum.dynamobim.com/u/grastar)\
**Post date:** [May 18, 2021, 4:17pm UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/19 "2021-05-18T16:17:15Z")

</div>

Hi mzjensen

Thank you again for setting me on the path with this, as you can see I have a result, I just need to get this filtered by the layers thus reducing the list by a lot. I have noticed that the layer name in the Pset is by something called ‘CodeName’ not sure if that makes a difference?

 ![Output1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/4/34ba477ea46cc4041d3b079d02fa2300ec401b4e.jpeg)  
 ![FilterByLayers](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/3/0356ff34380ea59064d927e6e4054dede4d8db21.jpeg)  
 ![Output2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/5/05df07bb9626fbf75c3975e3db796cbcfcd7f0cb.jpeg)

 ![CodeName](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/c/1ca4dee46cadd5066bb1f2e5408b5ae167328b08.jpeg)

---

<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:** [May 18, 2021, 4:52pm UTC](https://forum.dynamobim.com/t/corridor-shape-information/63866/20 "2021-05-18T16:52:00Z")

</div>

> [@grastar](#):
>
> I have noticed that the layer name in the Pset is by something called ‘CodeName’

The layer name is set from the Layer Name Template when when extracting the solids. I think the default is to use the subassembly name, but maybe in your case it was using the shape code name. The CodeName property in the property set should be the shape code.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/4/64dec21ba42f2e70eda0d49122a4ae3e5de5cea3.jpeg)

It looks like you want to filter by multiple layers. Here are some ways you could do that.

 ![Solids](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/f/cf1797df3606b3737d37619f9b9bd720f7c025d3.png)

[Next page](https://forum.dynamobim.com/t/corridor-shape-information/63866.md?page=2)
