# Node FamilyInstance.ByGeometry from spring node

**URL:** <https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044>\
**Category:** Uncategorized\
**Created:** [May 16, 2024, 6:39am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044 "2024-05-16T06:39:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![l.guerit](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@l.guerit](https://forum.dynamobim.com/u/l.guerit)\
**Post date:** [May 16, 2024, 6:39am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/1 "2024-05-16T06:39:23Z")

</div>

Hello everyone,  
I’m having a problem with the FamilyInstance.ByGeometry node in the spring node package, and in particular when assigning the material to my geometries. As input, I have a list of geometries, the familyTemplatePath, the family name, the category and a list of materials present in my Revit project. When I run the script, everything goes smoothly except for the material parameter assignment. All my geometries have the same material. But I can’t see the “material” line in the geometry properties.  
How can I solve this problem?  
Thank you

---

<div class="post-metadata">

**Author:** ![Kai](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kai](https://forum.dynamobim.com/u/Kai)\
**Post date:** [May 16, 2024, 6:48am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/2 "2024-05-16T06:48:09Z")

</div>

Hi , Possibly the way your have assigned your lacing…  
FYI Image might be helpful  
Cheers K

---

<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:** [May 16, 2024, 6:49am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/3 "2024-05-16T06:49:55Z")

</div>

Does the material exist in your family template?

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [May 16, 2024, 6:50am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/4 "2024-05-16T06:50:09Z")

</div>

Hi @l.guerit think this material you wanna set should be In template

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [May 16, 2024, 6:50am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/5 "2024-05-16T06:50:51Z")

</div>

Hehe same time

---

<div class="post-metadata">

**Author:** ![l.guerit](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@l.guerit](https://forum.dynamobim.com/u/l.guerit)\
**Post date:** [May 16, 2024, 6:51am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/6 "2024-05-16T06:51:58Z")

</div>

@Kai you mean “The sortest” or “The longest” ? I’ll try and come back to you

---

<div class="post-metadata">

**Author:** ![l.guerit](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@l.guerit](https://forum.dynamobim.com/u/l.guerit)\
**Post date:** [May 16, 2024, 6:53am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/7 "2024-05-16T06:53:00Z")

</div>

@sovitek & @jacob.small Yes, it exists in my model AND in my project

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [May 16, 2024, 6:56am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/8 "2024-05-16T06:56:23Z")

</div>

Yeah but probably not In template

---

<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:** [May 16, 2024, 6:56am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/9 "2024-05-16T06:56:33Z")

</div>

> [@l.guerit](#):
>
> Yes, it exists in my model AND in my project

Please provide the family template and an image of the graph showing the material you’re passing in.

---

<div class="post-metadata">

**Author:** ![l.guerit](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@l.guerit](https://forum.dynamobim.com/u/l.guerit)\
**Post date:** [May 16, 2024, 6:58am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/10 "2024-05-16T06:58:38Z")

</div>

![demain4](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/3/23c46c9d37a0cfa08d151e6d61d449184997ee88.png)

This is a metric mass @jacob.small

---

<div class="post-metadata">

**Author:** ![l.guerit](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@l.guerit](https://forum.dynamobim.com/u/l.guerit)\
**Post date:** [May 16, 2024, 7:01am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/11 "2024-05-16T07:01:09Z")

</div>

And my Dynamo looks like this :

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

---

<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:** [May 16, 2024, 7:11am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/12 "2024-05-16T07:11:34Z")

</div>

The metric mass family template doesn’t have a material named “blue” in it for me - can you confirm by starting a new family from the template and looking into what materials you have available?

---

<div class="post-metadata">

**Author:** ![l.guerit](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@l.guerit](https://forum.dynamobim.com/u/l.guerit)\
**Post date:** [May 16, 2024, 7:13am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/13 "2024-05-16T07:13:26Z")

</div>

@jacob.small The “blue” material is a personal creation. I load it in my family at the time of its creation

---

<div class="post-metadata">

**Author:** ![l.guerit](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@l.guerit](https://forum.dynamobim.com/u/l.guerit)\
**Post date:** [May 16, 2024, 7:15am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/14 "2024-05-16T07:15:06Z")

</div>

@jacob.small when i create a new metric mass family, i’ve only those materials :

 ![demain6](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/4/54b4c7aaa07ee4e3c08dcfe81d20d99a5e806703.png)

---

<div class="post-metadata">

**Author:** ![l.guerit](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@l.guerit](https://forum.dynamobim.com/u/l.guerit)\
**Post date:** [May 16, 2024, 7:21am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/15 "2024-05-16T07:21:21Z")

</div>

The problem is that I can’t see the propriety “Meterial” in the mass proprieties …

---

<div class="post-metadata">

**Author:** ![l.guerit](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@l.guerit](https://forum.dynamobim.com/u/l.guerit)\
**Post date:** [May 16, 2024, 7:30am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/16 "2024-05-16T07:30:20Z")

</div>

@jacob.small but i can see material propriety in the family template (i pick 1 mass with Material : Blue)

 ![demain7](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/b/8be3b4b8eec1cac48a61e17f32dd7d0be7fd9542.png)

In taht case i assigned the material before using the node FamilyInstance.ByGeometry. And i put no entry in the node and the result is a mass without material

---

<div class="post-metadata">

**Author:** ![l.guerit](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@l.guerit](https://forum.dynamobim.com/u/l.guerit)\
**Post date:** [May 16, 2024, 7:33am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/17 "2024-05-16T07:33:24Z")

</div>

![demain8](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/e/9eb8890eab4623d4f7fa2109acf9f17f38708ee9.png)  
Like this in my project

---

<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:** [May 16, 2024, 7:37am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/18 "2024-05-16T07:37:07Z")

</div>

> [@l.guerit](#):
>
> I load it in my family at the time of its creation

But not before creating the family. The Material you use has to exist in the `Volume Metric.rfa` file (the template file itself) before you use the FamilyInstance.ByGeometry node.

So if you want all of those other materials in your family, you’ll have to edit the family template before running the Dynamo graph. Fortunately this is a one time thing and you can just reuse the same materials thereafter.

Alternatively you could look at building some code to shift the materials into the family before the solid is created.

---

<div class="post-metadata">

**Author:** ![l.guerit](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@l.guerit](https://forum.dynamobim.com/u/l.guerit)\
**Post date:** [May 16, 2024, 7:42am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/19 "2024-05-16T07:42:21Z")

</div>

@jacob.small But i think i did it. I loaded all my materials before running the dynamo script

---

<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:** [May 16, 2024, 7:44am UTC](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044/20 "2024-05-16T07:44:47Z")

</div>

Great. So for record of others who find this thread in the future, would you say the solution is to "ensure the materials exist in the family template before using the node’?

[Next page](https://forum.dynamobim.com/t/node-familyinstance-bygeometry-from-spring-node/101044.md?page=2)
