# FromSolidDef Method

**URL:** <https://forum.dynamobim.com/t/fromsoliddef-method/101750>\
**Category:** Developers\
**Tags:** zerotouch, geometry, dynamo, csharp\
**Created:** [June 10, 2024, 8:16am UTC](https://forum.dynamobim.com/t/fromsoliddef-method/101750 "2024-06-10T08:16:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bayowindapo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bayowindapo/32/184532_2.png) [@bayowindapo](https://forum.dynamobim.com/u/bayowindapo)\
**Post date:** [June 10, 2024, 8:16am UTC](https://forum.dynamobim.com/t/fromsoliddef-method/101750/1 "2024-06-10T08:16:06Z")

</div>

Hi All,

I hope you are well.

I was wondering if using the `FromSolidDef` method when developing zero-touch nodes in C# is possible. I have tried without much luck. My goal is to draw a few shapes in Revit, store them as strings, and then use the `FromSolidDef` method to recreate them. This approach would be much easier than modelling the shapes directly in Dynamo.

Thanks for your help!

@john_pierson @chuongmep

---

<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:** [June 10, 2024, 8:19am UTC](https://forum.dynamobim.com/t/fromsoliddef-method/101750/2 "2024-06-10T08:19:47Z")

</div>

I can confirm it’s doable; You may have better luck with other methods though (i.e. SAT / SAB, where you just consume the path to the file in your zero touch node), depending on your geometry type.

---

<div class="post-metadata">

**Author:** ![bayowindapo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bayowindapo/32/184532_2.png) [@bayowindapo](https://forum.dynamobim.com/u/bayowindapo)\
**Post date:** [June 10, 2024, 8:29am UTC](https://forum.dynamobim.com/t/fromsoliddef-method/101750/3 "2024-06-10T08:29:06Z")

</div>

Ahh thanks Jacob. I will give this a go.

---

<div class="post-metadata">

**Author:** ![chuongmep](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chuongmep/32/197537_2.png) [@chuongmep](https://forum.dynamobim.com/u/chuongmep)\
**Post date:** [June 10, 2024, 1:41pm UTC](https://forum.dynamobim.com/t/fromsoliddef-method/101750/4 "2024-06-10T13:41:40Z")

</div>

It posible, just remember is you need to import [library](https://www.fuget.org/packages/DynamoVisualProgramming.ZeroTouchLibrary/2.13.0.3485/lib/net45/ProtoGeometry.dll/Autodesk.DesignScript.Geometry) before use `FromSolidDef`

```auto
using Autodesk.DesignScript.Geometry

```

---

<div class="post-metadata">

**Author:** ![bayowindapo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bayowindapo/32/184532_2.png) [@bayowindapo](https://forum.dynamobim.com/u/bayowindapo)\
**Post date:** [June 10, 2024, 9:59pm UTC](https://forum.dynamobim.com/t/fromsoliddef-method/101750/5 "2024-06-10T21:59:01Z")

</div>

Hello

Yes I did so. It does not work.

---

<div class="post-metadata">

**Author:** ![chuongmep](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chuongmep/32/197537_2.png) [@chuongmep](https://forum.dynamobim.com/u/chuongmep)\
**Post date:** [June 11, 2024, 8:59am UTC](https://forum.dynamobim.com/t/fromsoliddef-method/101750/6 "2024-06-11T08:59:49Z")

</div>

can share what you did ?

---

<div class="post-metadata">

**Author:** ![bayowindapo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bayowindapo/32/184532_2.png) [@bayowindapo](https://forum.dynamobim.com/u/bayowindapo)\
**Post date:** [June 16, 2024, 3:50pm UTC](https://forum.dynamobim.com/t/fromsoliddef-method/101750/7 "2024-06-16T15:50:11Z")

</div>

Hello

Sorry about the delayed response.  
It seems the issue was that the fromSolidDef method can only be called in a static method. I was attempting to use it in an instance.  
Thanks.
