# Base Offset when creating Wall.ByCurveAnsHeight

**URL:** <https://forum.dynamobim.com/t/base-offset-when-creating-wall-bycurveansheight/97014>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [January 10, 2024, 11:34am UTC](https://forum.dynamobim.com/t/base-offset-when-creating-wall-bycurveansheight/97014 "2024-01-10T11:34:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arjan.Wanders](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arjan.wanders/32/113866_2.png) [@Arjan.Wanders](https://forum.dynamobim.com/u/Arjan.Wanders)\
**Post date:** [January 10, 2024, 11:34am UTC](https://forum.dynamobim.com/t/base-offset-when-creating-wall-bycurveansheight/97014/1 "2024-01-10T11:34:44Z")

</div>

Hi,

I’ve created a script to generate (curtain) walls, based on the size and position of the opening family.  
It works fine, except the Base Offset of the created walls. When i run the script for one element, the Base Offset parameter is set correctly. With multiple elements selected it looks a kind of random, sometimes the Base Offset is set correct, but mostly it’s set at zero.  
I was thinking about a lacing problem, which is strange because the width and height are set correctly.  
Set the parameter after creating could be a workaround, but make the script unnecessarily complex.

script: [Create curtain walls.dyn](https://forum.dynamobim.com/uploads/short-url/eyuIRes758AGv9anUQsJDsnrGQv.dyn) (32.6 KB)

 ![Dynamo - place windows 2024-01-10](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/4/74aa630f140568eeec43e7296424866942f87a1b.png)

---

<div class="post-metadata">

**Author:** ![adp9ZK7T](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@adp9ZK7T](https://forum.dynamobim.com/u/adp9ZK7T)\
**Post date:** [January 10, 2024, 12:09pm UTC](https://forum.dynamobim.com/t/base-offset-when-creating-wall-bycurveansheight/97014/2 "2024-01-10T12:09:23Z")

</div>

Yes, consider changing the parameter value after the elements have been created.

---

<div class="post-metadata">

**Author:** ![Arjan.Wanders](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arjan.wanders/32/113866_2.png) [@Arjan.Wanders](https://forum.dynamobim.com/u/Arjan.Wanders)\
**Post date:** [January 10, 2024, 12:41pm UTC](https://forum.dynamobim.com/t/base-offset-when-creating-wall-bycurveansheight/97014/3 "2024-01-10T12:41:34Z")

</div>

This works fine when generating multiple elements, if I select one element the offset is applied twice.  
Which is very strange, because the Base offset is showing the correct value. 🙃

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

---

<div class="post-metadata">

**Author:** ![adp9ZK7T](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@adp9ZK7T](https://forum.dynamobim.com/u/adp9ZK7T)\
**Post date:** [January 10, 2024, 12:48pm UTC](https://forum.dynamobim.com/t/base-offset-when-creating-wall-bycurveansheight/97014/4 "2024-01-10T12:48:38Z")

</div>

Perhaps the base constraint changes? If the base offset is correct as value, there is no way for it to display the geometry incorrectly. Another parameter must influence it.

---

<div class="post-metadata">

**Author:** ![Arjan.Wanders](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arjan.wanders/32/113866_2.png) [@Arjan.Wanders](https://forum.dynamobim.com/u/Arjan.Wanders)\
**Post date:** [January 10, 2024, 1:18pm UTC](https://forum.dynamobim.com/t/base-offset-when-creating-wall-bycurveansheight/97014/5 "2024-01-10T13:18:06Z")

</div>

Unfortunately the constraint is correct, is seems to be some kind of bug…  
I’ve make some changes to the workaround. By first remove the Z value from the startpoint, and put the Base Offset after creating the walls it works. Not really the way I would like it…

There is a warning, something about the modeling range. Maybe this could be the issue in the first setup?

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

---

<div class="post-metadata">

**Author:** ![RevitRobot](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/revitrobot/32/179241_2.png) [@RevitRobot](https://forum.dynamobim.com/u/RevitRobot)\
**Post date:** [January 10, 2024, 2:06pm UTC](https://forum.dynamobim.com/t/base-offset-when-creating-wall-bycurveansheight/97014/6 "2024-01-10T14:06:38Z")

</div>

Depending on the operation you’re doing I would always set Modelling Range to maximum. But really it depends on the size of the operation.

Also I would apply the Base Offset after the creation. it will help the syntax of things.

---

<div class="post-metadata">

**Author:** ![adp9ZK7T](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@adp9ZK7T](https://forum.dynamobim.com/u/adp9ZK7T)\
**Post date:** [January 12, 2024, 6:06am UTC](https://forum.dynamobim.com/t/base-offset-when-creating-wall-bycurveansheight/97014/7 "2024-01-12T06:06:51Z")

</div>

Hi Arjan,  
Are you satisfied with the result?  
If you are looking for a neater solution, perhaps you could set the offset values after generating the element by using the wait for or passthrough node, or use this code: [pass,wait][0]

If the issue is not the base constraint, maybe its something to do with the curtain wall settings/parameters?

---

<div class="post-metadata">

**Author:** ![Arjan.Wanders](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arjan.wanders/32/113866_2.png) [@Arjan.Wanders](https://forum.dynamobim.com/u/Arjan.Wanders)\
**Post date:** [January 12, 2024, 10:57am UTC](https://forum.dynamobim.com/t/base-offset-when-creating-wall-bycurveansheight/97014/8 "2024-01-12T10:57:06Z")

</div>

Hi Adam,

Yes, setting the Base Offset parameter after the creation fixes the issue. Maybe, like @RevitRobot wrote, this is the best way to get a stable script. Thank you both for your ideas!
