# Path Array in Revit.(problem with levels )(instance of a level-based family cannot be created without a valid reference level.)

**URL:** <https://forum.dynamobim.com/t/path-array-in-revit-problem-with-levels-instance-of-a-level-based-family-cannot-be-created-without-a-valid-reference-level/73353>\
**Category:** Revit\
**Tags:** revit, dynamo, levels\
**Created:** [February 15, 2022, 9:50am UTC](https://forum.dynamobim.com/t/path-array-in-revit-problem-with-levels-instance-of-a-level-based-family-cannot-be-created-without-a-valid-reference-level/73353 "2022-02-15T09:50:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmadkhalaf7892](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmadkhalaf7892/32/131910_2.png) [@ahmadkhalaf7892](https://forum.dynamobim.com/u/ahmadkhalaf7892)\
**Post date:** [February 15, 2022, 9:50am UTC](https://forum.dynamobim.com/t/path-array-in-revit-problem-with-levels-instance-of-a-level-based-family-cannot-be-created-without-a-valid-reference-level/73353/1 "2022-02-15T09:50:38Z")

</div>

![MicrosoftTeams-image (4)](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/4/94f19c5149738f3e6c3b652b9f6666e7ab48e2e0.png)

 ![MicrosoftTeams-image (3)](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/f/2f4c7b9059a39ef79dbfeae8a5c9aedeb463b8ea.png)  
 ![MicrosoftTeams-image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/8/28c48eb243aef9250af01fe641418c4b9c41ebf7.png)  
[Curve Array level problem.dyn](https://forum.dynamobim.com/uploads/short-url/rlJV2hQwCffPXql53JtYbm11KMN.dyn) (9.5 KB)  
Hello Currently I have Created This dynamo script , in which a model Line is created for example and I want to assign a family on it like a path array command . The problem is that this script works with family with no Level constrains , however when I am trying to assign a family with level constrains (columns for example ) It doesn’t work and says (instance of a level-based family cannot be created without a valid reference level.) I have attached the dynamo script . Is there anyway I can do a Path array command with Families that have level constrains ?

---

<div class="post-metadata">

**Author:** ![volkan.isik](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/volkan.isik/32/134061_2.png) [@volkan.isik](https://forum.dynamobim.com/u/volkan.isik)\
**Post date:** [February 15, 2022, 10:19am UTC](https://forum.dynamobim.com/t/path-array-in-revit-problem-with-levels-instance-of-a-level-based-family-cannot-be-created-without-a-valid-reference-level/73353/2 "2022-02-15T10:19:55Z")

</div>

Hi @ahmadkhalaf7892

You can try this “FamilyInstance.ByPointAndLevel”

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

---

<div class="post-metadata">

**Author:** ![ahmadkhalaf7892](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmadkhalaf7892/32/131910_2.png) [@ahmadkhalaf7892](https://forum.dynamobim.com/u/ahmadkhalaf7892)\
**Post date:** [February 15, 2022, 10:29am UTC](https://forum.dynamobim.com/t/path-array-in-revit-problem-with-levels-instance-of-a-level-based-family-cannot-be-created-without-a-valid-reference-level/73353/3 "2022-02-15T10:29:57Z")

</div>

Thank you a lot you are a lifesaver. Can I add a specific distance between the families ?

---

<div class="post-metadata">

**Author:** ![ahmadkhalaf7892](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmadkhalaf7892/32/131910_2.png) [@ahmadkhalaf7892](https://forum.dynamobim.com/u/ahmadkhalaf7892)\
**Post date:** [February 15, 2022, 10:30am UTC](https://forum.dynamobim.com/t/path-array-in-revit-problem-with-levels-instance-of-a-level-based-family-cannot-be-created-without-a-valid-reference-level/73353/4 "2022-02-15T10:30:32Z")

</div>

Thank you a lot you are a lifesaver. Can I add a specific distance between the families ?/

---

<div class="post-metadata">

**Author:** ![volkan.isik](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/volkan.isik/32/134061_2.png) [@volkan.isik](https://forum.dynamobim.com/u/volkan.isik)\
**Post date:** [February 15, 2022, 10:36am UTC](https://forum.dynamobim.com/t/path-array-in-revit-problem-with-levels-instance-of-a-level-based-family-cannot-be-created-without-a-valid-reference-level/73353/5 "2022-02-15T10:36:35Z")

</div>

@ahmadkhalaf7892 Of course 🙂

I have units setting meter

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/8/583bd09c0128be9dac65b48571d53593d901198a.png)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/8/78d49808cee7b952a0c556a4dbb2e3dc3bf5ab18.png)

---

<div class="post-metadata">

**Author:** ![ahmadkhalaf7892](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmadkhalaf7892/32/131910_2.png) [@ahmadkhalaf7892](https://forum.dynamobim.com/u/ahmadkhalaf7892)\
**Post date:** [February 15, 2022, 10:41am UTC](https://forum.dynamobim.com/t/path-array-in-revit-problem-with-levels-instance-of-a-level-based-family-cannot-be-created-without-a-valid-reference-level/73353/6 "2022-02-15T10:41:31Z")

</div>

Thanks a lot , I am really grateful

---

<div class="post-metadata">

**Author:** ![ahmadkhalaf7892](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmadkhalaf7892/32/131910_2.png) [@ahmadkhalaf7892](https://forum.dynamobim.com/u/ahmadkhalaf7892)\
**Post date:** [February 16, 2022, 10:36am UTC](https://forum.dynamobim.com/t/path-array-in-revit-problem-with-levels-instance-of-a-level-based-family-cannot-be-created-without-a-valid-reference-level/73353/7 "2022-02-16T10:36:12Z")

</div>

Hey man Is there a way we can edit also the levels, By that I mean can we make the families for example from level 1 till level 3 , or from level 1 till 4 etc… , I’d really appreciate the help .
