# \#function

**URL:** https://forum.dynamobim.com/tag/function/20.md

[Latest](https://forum.dynamobim.com/latest.md) · [Categories](https://forum.dynamobim.com/categories.md) · [Tags](https://forum.dynamobim.com/tags.md)

---

## [Addition of Values in multiple Strings](https://forum.dynamobim.com/t/addition-of-values-in-multiple-strings/110520)

<div class="topic-metadata">

**Author:** [@nbarlett](https://forum.dynamobim.com/u/nbarlett)\
**Replies:** 2\
**Last updated:** [June 6, 2025, 10:01am UTC](https://forum.dynamobim.com/t/addition-of-values-in-multiple-strings/110520 "2025-06-06T10:01:38Z")

</div>

Hi All, I’m Looking for a way to cleanup this script I made. Basically its mimicking the 'Calculated Parameter" Function in schedules so I can use the end result parameter as a filter rule for graphic overrides. The C…

---

## [Function in DesignScript showing wrong results](https://forum.dynamobim.com/t/function-in-designscript-showing-wrong-results/87419)

<div class="topic-metadata">

**Author:** [@Marcinkiewiczna](https://forum.dynamobim.com/u/Marcinkiewiczna)\
**Replies:** 3\
**Last updated:** [March 17, 2023, 2:50pm UTC](https://forum.dynamobim.com/t/function-in-designscript-showing-wrong-results/87419 "2023-03-17T14:50:45Z")

</div>

Hi! I am quite new to Dynamo and DesignScript, but I am writing my master’s thesis on that subject and I got stuck. After realising I have too much of a repetitive code, I tried to use a function for the first time. Can …

---

## [DesignScript Novice - What am I missing here?](https://forum.dynamobim.com/t/designscript-novice-what-am-i-missing-here/68699)

<div class="topic-metadata">

**Author:** [@TheMattatonAP](https://forum.dynamobim.com/u/TheMattatonAP)\
**Replies:** 30\
**Last updated:** [September 30, 2021, 3:20pm UTC](https://forum.dynamobim.com/t/designscript-novice-what-am-i-missing-here/68699 "2021-09-30T15:20:48Z")

</div>

I’m new to DesignScript, so bear with me. I find examples of usages online, but I have a hard time finding documentation to further explain what I’m seeing. Yes, I have pdfs for DesignScript Guide and Documentation. In …

---

## [Design Script If Logic Failure](https://forum.dynamobim.com/t/design-script-if-logic-failure/59494)

<div class="topic-metadata">

**Author:** [@smichaudN26PG](https://forum.dynamobim.com/u/smichaudN26PG)\
**Replies:** 6\
**Last updated:** [January 20, 2021, 2:00am UTC](https://forum.dynamobim.com/t/design-script-if-logic-failure/59494 "2021-01-20T02:00:03Z")

</div>

I am pulling my hair out in frustration. I’m trying to nest the logic of vector math in a design script function. I want the input HostTypeString to check if it is “Wall” if so do the vector math and return 1 angle doubl…

---

## [Dynamo code block function return strange things](https://forum.dynamobim.com/t/dynamo-code-block-function-return-strange-things/58986)

<div class="topic-metadata">

**Author:** [@wslee94577P2VT](https://forum.dynamobim.com/u/wslee94577P2VT)\
**Replies:** 4\
**Last updated:** [January 18, 2021, 3:14am UTC](https://forum.dynamobim.com/t/dynamo-code-block-function-return-strange-things/58986 "2021-01-18T03:14:20Z")

</div>

Hi, I’m currently progress in auto rebar modeling using dynamo for my project. Cause of some reason I use pre-defined code block function for return stirrup rule by column type. I was intend to get \[-480,-780,-1080,-1…

---

## [Problem with using def function](https://forum.dynamobim.com/t/problem-with-using-def-function/57039)

<div class="topic-metadata">

**Author:** [@jj06jj](https://forum.dynamobim.com/u/jj06jj)\
**Replies:** 5\
**Last updated:** [November 9, 2020, 11:04am UTC](https://forum.dynamobim.com/t/problem-with-using-def-function/57039 "2020-11-09T11:04:11Z")

</div>

I defined it as a function, but the return value is different from the node above. Please tell me the solution. def CurveVertex(input) { curve = input; param = \[0, 1\]; pt1 = Autodesk.Curve.PointAtParameter(curv…

---

## [Element binding - Can you add shared parameter to families that will change their shape during design and keep these information each time the design change?](https://forum.dynamobim.com/t/element-binding-can-you-add-shared-parameter-to-families-that-will-change-their-shape-during-design-and-keep-these-information-each-time-the-design-change/56088)

<div class="topic-metadata">

**Author:** [@Qnguyen2688](https://forum.dynamobim.com/u/Qnguyen2688)\
**Replies:** 13\
**Last updated:** [October 15, 2020, 5:43pm UTC](https://forum.dynamobim.com/t/element-binding-can-you-add-shared-parameter-to-families-that-will-change-their-shape-during-design-and-keep-these-information-each-time-the-design-change/56088 "2020-10-15T17:43:15Z")

</div>

Hi everyone, I design 1 specific graph for 1 project. The Dynamo graph supposes to create 5 generic model families from Solid Blocks that were created in Dynamo (the intention is that when I change the solid block’s shap…

---

## [How to use defined functions as "predicate"?](https://forum.dynamobim.com/t/how-to-use-defined-functions-as-predicate/50382)

<div class="topic-metadata">

**Author:** [@sed07](https://forum.dynamobim.com/u/sed07)\
**Replies:** 4\
**Last updated:** [May 8, 2020, 5:41pm UTC](https://forum.dynamobim.com/t/how-to-use-defined-functions-as-predicate/50382 "2020-05-08T17:41:07Z")

</div>

Hi, Why does the top workflow succeed with an OOTB node, while the bottom one tells me that my defined function ‘isequalto1()’ is not found? I guess it makes sense, because according to my function definition, I have t…

---

## [Returning a List from a funtion which also takes a List as an input](https://forum.dynamobim.com/t/returning-a-list-from-a-funtion-which-also-takes-a-list-as-an-input/49675)

<div class="topic-metadata">

**Author:** [@shivam](https://forum.dynamobim.com/u/shivam)\
**Replies:** 2\
**Last updated:** [April 23, 2020, 9:54am UTC](https://forum.dynamobim.com/t/returning-a-list-from-a-funtion-which-also-takes-a-list-as-an-input/49675 "2020-04-23T09:54:13Z")

</div>

I am constructing a function that would take an array(list) as its argument(input) and returns another array. On calling the function the code shows a warning and returns null. The warning says “Converting an array to va…

---

## [HoneyBee Tutorial](https://forum.dynamobim.com/t/honeybee-tutorial/43269)

<div class="topic-metadata">

**Author:** [@rsolomonV6](https://forum.dynamobim.com/u/rsolomonV6)\
**Replies:** 6\
**Last updated:** [November 22, 2019, 1:30pm UTC](https://forum.dynamobim.com/t/honeybee-tutorial/43269 "2019-11-22T13:30:41Z")

</div>

Hi, I hope to learn how to use honeybee nodes, so far run into some issue While creating the Analysis Grid node, the points required from the Generate Test Points from HBZones node come out as a function for some reaso…

---

## [Apply Function Multiple Times](https://forum.dynamobim.com/t/apply-function-multiple-times/23024)

<div class="topic-metadata">

**Author:** [@sed07](https://forum.dynamobim.com/u/sed07)\
**Replies:** 9\
**Last updated:** [June 22, 2018, 11:05am UTC](https://forum.dynamobim.com/t/apply-function-multiple-times/23024 "2018-06-22T11:05:59Z")

</div>

Hi, I’m trying to duplicate an element multiple times, but I just couldn’t wrap my head around the while function and the way functions can be applied in code blocks. I tried transferring a function into a variable and…

---

## [Function definition](https://forum.dynamobim.com/t/function-definition/9575)

<div class="topic-metadata">

**Author:** [@babysatch](https://forum.dynamobim.com/u/babysatch)\
**Replies:** 16\
**Last updated:** [May 26, 2018, 2:54am UTC](https://forum.dynamobim.com/t/function-definition/9575 "2018-05-26T02:54:36Z")

</div>

Hi, does any body know how it could be possible to define a function in a code block that gets a variable and return this as a project parameter something like this: At the moment it’s impossible as you see that the …

---

## [Repeated function](https://forum.dynamobim.com/t/repeated-function/21011)

<div class="topic-metadata">

**Author:** [@robert.ek](https://forum.dynamobim.com/u/robert.ek)\
**Replies:** 4\
**Last updated:** [April 17, 2018, 7:36am UTC](https://forum.dynamobim.com/t/repeated-function/21011 "2018-04-17T07:36:14Z")

</div>

Hi, I’m trying to repeat a function x number of times such as example below but repeated to t100 = test(t99); for instance. Is it possible? \[image\]

---

## [Help with basic function](https://forum.dynamobim.com/t/help-with-basic-function/20976)

<div class="topic-metadata">

**Author:** [@robert.ek](https://forum.dynamobim.com/u/robert.ek)\
**Replies:** 12\
**Last updated:** [April 15, 2018, 10:00am UTC](https://forum.dynamobim.com/t/help-with-basic-function/20976 "2018-04-15T10:00:46Z")

</div>

HI, Why is list.last item not working inside a function? \[image\]

---

## [Function loop via CodeBlock](https://forum.dynamobim.com/t/function-loop-via-codeblock/19909)

<div class="topic-metadata">

**Author:** [@Archi](https://forum.dynamobim.com/u/Archi)\
**Replies:** 3\
**Last updated:** [March 12, 2018, 9:21am UTC](https://forum.dynamobim.com/t/function-loop-via-codeblock/19909 "2018-03-12T09:21:50Z")

</div>

\[Capture\] For a Long time i was looking for a way to make this possible: I had to duplicate many times the same node to make the function “remesh” for a larger amount of times, because it belongs to the MeshToolkit pac…

---

## [Strange data manipulation in code block](https://forum.dynamobim.com/t/strange-data-manipulation-in-code-block/4541)

<div class="topic-metadata">

**Author:** [@t\_oliyo](https://forum.dynamobim.com/u/t_oliyo)\
**Replies:** 2\
**Last updated:** [June 16, 2016, 1:18pm UTC](https://forum.dynamobim.com/t/strange-data-manipulation-in-code-block/4541 "2016-06-16T13:18:34Z")

</div>

I encountered a problem while trying to do some looping in the code block and made this simple code blocks to study to study the problem but I can’t figure out why design script is giving me meaningless results. Help is …
