# \#code

**URL:** https://forum.dynamobim.com/tag/code/134.md

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

---

## [Exploring the Efficacy of Dynamo for Validating Building Code Requirements in Revit Models](https://forum.dynamobim.com/t/exploring-the-efficacy-of-dynamo-for-validating-building-code-requirements-in-revit-models/99348)

<div class="topic-metadata">

**Author:** [@calvinfordes](https://forum.dynamobim.com/u/calvinfordes)\
**Replies:** 4\
**Last updated:** [March 22, 2024, 11:15pm UTC](https://forum.dynamobim.com/t/exploring-the-efficacy-of-dynamo-for-validating-building-code-requirements-in-revit-models/99348 "2024-03-22T23:15:05Z")

</div>

This discussion aims to delve into the utilization of Dynamo for the validation of building code requirements within Revit models. We would like to explore the potential benefits, challenges, and best practices associat…

---

## [Code Block Not Working Properly](https://forum.dynamobim.com/t/code-block-not-working-properly/72533)

<div class="topic-metadata">

**Author:** [@zvith](https://forum.dynamobim.com/u/zvith)\
**Replies:** 7\
**Last updated:** [January 24, 2022, 10:55am UTC](https://forum.dynamobim.com/t/code-block-not-working-properly/72533 "2022-01-24T10:55:38Z")

</div>

I wrote a code block which is supposed to receive an object X and if the X\[0\] == “True”, return the first object on the list X\[1\]\[0\], else return the object itself X\[1\]. It works when feed it with a single object but whe…

---

## [Dynamo Civil 3D Python Help For Catchment List Creation](https://forum.dynamobim.com/t/dynamo-civil-3d-python-help-for-catchment-list-creation/59074)

<div class="topic-metadata">

**Author:** [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Replies:** 3\
**Last updated:** [January 8, 2021, 4:59pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-python-help-for-catchment-list-creation/59074 "2021-01-08T16:59:29Z")

</div>

Hi, I have been trying to develop my skills working with the python node in dynamo and am having some trouble with my current project. Since the latest version of C3D 2021 exposes many members of the Catchment object ty…

---

## [How can I create a triangle shape from the lenght of its sides?](https://forum.dynamobim.com/t/how-can-i-create-a-triangle-shape-from-the-lenght-of-its-sides/57474)

<div class="topic-metadata">

**Author:** [@joavegaco](https://forum.dynamobim.com/u/joavegaco)\
**Replies:** 8\
**Last updated:** [November 19, 2020, 8:30pm UTC](https://forum.dynamobim.com/t/how-can-i-create-a-triangle-shape-from-the-lenght-of-its-sides/57474 "2020-11-19T20:30:05Z")

</div>

Hello everyone I would like to know if there is a way Dynamo can create a triangle from the lenght of its sides. If I have in data three numbers: 3,4,5, for example, can I draw a pythagorean triangle shape in a Dynamo m…

---

## [Load spesific version of dynamo revit programatically](https://forum.dynamobim.com/t/load-spesific-version-of-dynamo-revit-programatically/42809)

<div class="topic-metadata">

**Author:** [@MNLI](https://forum.dynamobim.com/u/MNLI)\
**Replies:** 2\
**Last updated:** [November 7, 2019, 1:37pm UTC](https://forum.dynamobim.com/t/load-spesific-version-of-dynamo-revit-programatically/42809 "2019-11-07T13:37:05Z")

</div>

Hi! Im working on automating the process of running a dynamo script from a revit addin in C# I have a working solution to run a Dynamo script from my addin when version 2 is loaded through the user interface. i have b…

---

## [Define a list within a codeblock](https://forum.dynamobim.com/t/define-a-list-within-a-codeblock/28296)

<div class="topic-metadata">

**Author:** [@moguah](https://forum.dynamobim.com/u/moguah)\
**Replies:** 1\
**Last updated:** [November 11, 2018, 3:19pm UTC](https://forum.dynamobim.com/t/define-a-list-within-a-codeblock/28296 "2018-11-11T15:19:34Z")

</div>

Is there a way to define output as a list, and thus skipping List.Create as an input to a codeblock?
