# \#designscript

**URL:** https://forum.dynamobim.com/tag/designscript/23.md

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

---

## [Bug in GetItemAtIndex inside Ternary Operator](https://forum.dynamobim.com/t/bug-in-getitematindex-inside-ternary-operator/115203)

<div class="topic-metadata">

**Author:** [@Anton\_Huizinga](https://forum.dynamobim.com/u/Anton_Huizinga)\
**Replies:** 3\
**Last updated:** [September 16, 2026, 8:09am UTC](https://forum.dynamobim.com/t/bug-in-getitematindex-inside-ternary-operator/115203 "2026-09-16T08:09:42Z")

</div>

I noticed a weird situation lately when I tried to extend/reduce a list to a fixed length. If a list is shorter than 10 items, I wanted to extend it with dashes, if it is longer than 10, I want to reduce it. As far as I …

---

## [Optimizing Design Script code to make it work faster](https://forum.dynamobim.com/t/optimizing-design-script-code-to-make-it-work-faster/113364)

<div class="topic-metadata">

**Author:** [@sensiblehira](https://forum.dynamobim.com/u/sensiblehira)\
**Replies:** 9\
**Last updated:** [December 8, 2025, 10:05pm UTC](https://forum.dynamobim.com/t/optimizing-design-script-code-to-make-it-work-faster/113364 "2025-12-08T22:05:57Z")

</div>

origins; directions; view; a = null; finalPoints = \[\]; \[Imperative\] { for (i in 0..Count(origins)-1) { roomsPoints = origins\[i\]; roomsPointsDirections = directions\[i\]; for (j in 0..Count(roomsPoints)-1) { o …

---

## [Object Movement Through Doors Without Collisions](https://forum.dynamobim.com/t/object-movement-through-doors-without-collisions/110345)

<div class="topic-metadata">

**Author:** [@A.C3D](https://forum.dynamobim.com/u/A.C3D)\
**Replies:** 9\
**Last updated:** [May 28, 2025, 10:21am UTC](https://forum.dynamobim.com/t/object-movement-through-doors-without-collisions/110345 "2025-05-28T10:21:26Z")

</div>

Hi, I’m looking to develop a script that checks whether an object can move from one room to another through a door without touching any walls. What strategy could I use to determine if the object fits and can pass thro…

---

## [Vector Subtraction from Point](https://forum.dynamobim.com/t/vector-subtraction-from-point/108785)

<div class="topic-metadata">

**Author:** [@akshay.korlekar](https://forum.dynamobim.com/u/akshay.korlekar)\
**Replies:** 2\
**Last updated:** [March 17, 2025, 4:33pm UTC](https://forum.dynamobim.com/t/vector-subtraction-from-point/108785 "2025-03-17T16:33:52Z")

</div>

I have here a very curious problem. This is more about geometry aspects related to vectors. So this is an exercise from the Dynamo Language Manual. The aim here is to create two continuous NURBSCurves in such a way that…

---

## [For loop over list with designscript](https://forum.dynamobim.com/t/for-loop-over-list-with-designscript/107942)

<div class="topic-metadata">

**Author:** [@zviLNBRQ](https://forum.dynamobim.com/u/zviLNBRQ)\
**Replies:** 5\
**Last updated:** [February 12, 2025, 2:02pm UTC](https://forum.dynamobim.com/t/for-loop-over-list-with-designscript/107942 "2025-02-12T14:02:42Z")

</div>

I am trying to loop over list of wall elements (wall) and if the del is true (boolean) then delete. Am I missing something? Following is the code: del; wall; \[Imperative\]{ still = \[\]; for (w in wall){ if (del){ …

---

## [How to Get SpecType by String](https://forum.dynamobim.com/t/how-to-get-spectype-by-string/94312)

<div class="topic-metadata">

**Author:** [@qwerty123456](https://forum.dynamobim.com/u/qwerty123456)\
**Replies:** 5\
**Last updated:** [December 1, 2024, 5:20pm UTC](https://forum.dynamobim.com/t/how-to-get-spectype-by-string/94312 "2024-12-01T17:20:52Z")

</div>

The problem with dropdown is that the stored value can often go missing when opening another project. The codeblock is what I want to achieve, but apparently it’s not working

---

## ["if" logic between lists is being truncated](https://forum.dynamobim.com/t/if-logic-between-lists-is-being-truncated/105742)

<div class="topic-metadata">

**Author:** [@Julie\_Kidder](https://forum.dynamobim.com/u/Julie_Kidder)\
**Replies:** 2\
**Last updated:** [November 11, 2024, 8:00pm UTC](https://forum.dynamobim.com/t/if-logic-between-lists-is-being-truncated/105742 "2024-11-11T20:00:11Z")

</div>

I am trying to build a new list using a boolean condition to select the right sublist. It seems like it should be doable with a simple if statement, and I can get close using design scripts if logic, but it is truncatin…

---

## [Make groups and place groups with coordinationsystem instead of points](https://forum.dynamobim.com/t/make-groups-and-place-groups-with-coordinationsystem-instead-of-points/103049)

<div class="topic-metadata">

**Author:** [@sebasHamminga](https://forum.dynamobim.com/u/sebasHamminga)\
**Replies:** 20\
**Last updated:** [August 2, 2024, 7:54am UTC](https://forum.dynamobim.com/t/make-groups-and-place-groups-with-coordinationsystem-instead-of-points/103049 "2024-08-02T07:54:52Z")

</div>

Hey all, I’m trying to create groups and then place them at different points and orientations. I found out that Rhythm has a node called group.ByElementsAndOrigin but this only works on points and nog coordination syst…

---

## [Writing dynamo node as python code](https://forum.dynamobim.com/t/writing-dynamo-node-as-python-code/101463)

<div class="topic-metadata">

**Author:** [@Ecenurc](https://forum.dynamobim.com/u/Ecenurc)\
**Replies:** 10\
**Last updated:** [May 30, 2024, 5:42pm UTC](https://forum.dynamobim.com/t/writing-dynamo-node-as-python-code/101463 "2024-05-30T17:42:36Z")

</div>

Hi, I was trying to write nodes as a Python Code to learn how to write. To create these nodes as a Python code I wrote these lines below. Could you help me write it? Please excuse my major errors. # Load the Python…

---

## [How does ExtractOption and FillGap work?](https://forum.dynamobim.com/t/how-does-extractoption-and-fillgap-work/100290)

<div class="topic-metadata">

**Author:** [@ashley.thomasU38QH](https://forum.dynamobim.com/u/ashley.thomasU38QH)\
**Replies:** 0\
**Last updated:** [April 20, 2024, 7:23pm UTC](https://forum.dynamobim.com/t/how-does-extractoption-and-fillgap-work/100290 "2024-04-20T19:23:23Z")

</div>

Hi all, I am trying to see if I can use the FillGap property of ExtractOptions to close a series of lines or polylines automatically for me. However I am not sure how this actually works. I am trying to use a Python nod…

---

## [Hatches with gap tolerance from script](https://forum.dynamobim.com/t/hatches-with-gap-tolerance-from-script/100173)

<div class="topic-metadata">

**Author:** [@ashley.thomasU38QH](https://forum.dynamobim.com/u/ashley.thomasU38QH)\
**Replies:** 0\
**Last updated:** [April 17, 2024, 6:26pm UTC](https://forum.dynamobim.com/t/hatches-with-gap-tolerance-from-script/100173 "2024-04-17T18:26:46Z")

</div>

Hi all, I am trying to take a rectangle and create internal hatches with a gap tolerance based on an array of points (Created from the rectangle). Dynamo will take the rectangle (Polyline) and create an array of points…

---

## [Get viewport from view](https://forum.dynamobim.com/t/get-viewport-from-view/99902)

<div class="topic-metadata">

**Author:** [@Alien](https://forum.dynamobim.com/u/Alien)\
**Replies:** 16\
**Last updated:** [April 10, 2024, 6:12pm UTC](https://forum.dynamobim.com/t/get-viewport-from-view/99902 "2024-04-10T18:12:34Z")

</div>

Python is a tweaked version of : View.Viewport - Get Viewport from View - #6 by gerhard.p But I’m getting empty lists. How do I get the viewport of these views?

---

## [Insert nulls to gaps in a sequence](https://forum.dynamobim.com/t/insert-nulls-to-gaps-in-a-sequence/98323)

<div class="topic-metadata">

**Author:** [@s.proch](https://forum.dynamobim.com/u/s.proch)\
**Replies:** 12\
**Last updated:** [March 8, 2024, 4:21pm UTC](https://forum.dynamobim.com/t/insert-nulls-to-gaps-in-a-sequence/98323 "2024-03-08T16:21:41Z")

</div>

Hi all. I have a list of image names to be inserted to Civil3D. The image names have a format of 00X where the 00 indicates the national coordinate grid number (1-1000) and the letter indicates where in the grid the imag…

---

## [Create 3D views and filters based on EXcel](https://forum.dynamobim.com/t/create-3d-views-and-filters-based-on-excel/5252)

<div class="topic-metadata">

**Author:** [@Tom\_Denby](https://forum.dynamobim.com/u/Tom_Denby)\
**Replies:** 1\
**Last updated:** [January 18, 2024, 11:32pm UTC](https://forum.dynamobim.com/t/create-3d-views-and-filters-based-on-excel/5252 "2024-01-18T23:32:37Z")

</div>

Good afternoon, I’m looking into away of being able to create multiple 3D views (over 100) with filters from an excel… I’ve tried but find that I’m going round in circles… so this is what i have started with… the vie…

---

## [File From Path Designscript](https://forum.dynamobim.com/t/file-from-path-designscript/95726)

<div class="topic-metadata">

**Author:** [@layth.huweil](https://forum.dynamobim.com/u/layth.huweil)\
**Replies:** 2\
**Last updated:** [November 22, 2023, 1:08pm UTC](https://forum.dynamobim.com/t/file-from-path-designscript/95726 "2023-11-22T13:08:34Z")

</div>

How do I use the File From Path node in a code block? I cant get to the CoreNodeModels.

---

## [How to use List.Transpose Method in Python Script Node Dynamo?](https://forum.dynamobim.com/t/how-to-use-list-transpose-method-in-python-script-node-dynamo/89845)

<div class="topic-metadata">

**Author:** [@itsthomaspepe](https://forum.dynamobim.com/u/itsthomaspepe)\
**Replies:** 7\
**Last updated:** [May 21, 2023, 2:18pm UTC](https://forum.dynamobim.com/t/how-to-use-list-transpose-method-in-python-script-node-dynamo/89845 "2023-05-21T14:18:49Z")

</div>

I’m learning to translate a dynamo script and compact it into a single python node. I need to use the List.Transpose method… how to write it in python? and what references i need to add to be able to run the method? I a…

---

## [Accessing all sub classes of Autodesk.DesignScript.Geometry](https://forum.dynamobim.com/t/accessing-all-sub-classes-of-autodesk-designscript-geometry/91792)

<div class="topic-metadata">

**Author:** [@jake102518](https://forum.dynamobim.com/u/jake102518)\
**Replies:** 6\
**Last updated:** [July 14, 2023, 7:06am UTC](https://forum.dynamobim.com/t/accessing-all-sub-classes-of-autodesk-designscript-geometry/91792 "2023-07-14T07:06:49Z")

</div>

Hi, I’m trying to change all Dynamo nodes into single python script. What I’m trying to make is pretty simple. Several curves imported from .dxf file on Revit, and making a solid with those curves(while doing some diffe…

---

## [Solved: Debugging - Replacing Duplicate Items via DesignScript](https://forum.dynamobim.com/t/solved-debugging-replacing-duplicate-items-via-designscript/90505)

<div class="topic-metadata">

**Author:** [@Ekida](https://forum.dynamobim.com/u/Ekida)\
**Replies:** 2\
**Last updated:** [June 9, 2023, 5:38am UTC](https://forum.dynamobim.com/t/solved-debugging-replacing-duplicate-items-via-designscript/90505 "2023-06-09T05:38:38Z")

</div>

Good day, Dynamo Forum! This will be a long post ahead, so I humbly ask for your patience and kindness. I’m relatively new to DesignScript, and I’ve taken the big step of challenging myself with writing a function to bui…

---

## [Python "DSCore" CLR Library Guide/Dictionary Documentation](https://forum.dynamobim.com/t/python-dscore-clr-library-guide-dictionary-documentation/89859)

<div class="topic-metadata">

**Author:** [@itsthomaspepe](https://forum.dynamobim.com/u/itsthomaspepe)\
**Replies:** 3\
**Last updated:** [May 21, 2023, 12:56pm UTC](https://forum.dynamobim.com/t/python-dscore-clr-library-guide-dictionary-documentation/89859 "2023-05-21T12:56:49Z")

</div>

I’m learning to translate design script into python nodes in dynamo. I found forum post about importing the design script library into python through CLR Import all Design Script Methods to Python import clr clr.AddR…

---

## [Understanding DesignScript, "return \[Imperative\]", and "if-else" Better](https://forum.dynamobim.com/t/understanding-designscript-return-imperative-and-if-else-better/89429)

<div class="topic-metadata">

**Author:** [@Ekida](https://forum.dynamobim.com/u/Ekida)\
**Replies:** 7\
**Last updated:** [May 11, 2023, 5:41am UTC](https://forum.dynamobim.com/t/understanding-designscript-return-imperative-and-if-else-better/89429 "2023-05-11T05:41:27Z")

</div>

Hello, Dynamo Forum! I’ve been using Dynamo for a while now for Revit (mainly for exploring its capabilities in modelling and organizing data). Recently, I’ve made the step to try coding within Dynamo to study automating…

---

## [Help with Identifying common Paths](https://forum.dynamobim.com/t/help-with-identifying-common-paths/88970)

<div class="topic-metadata">

**Author:** [@abishek12354](https://forum.dynamobim.com/u/abishek12354)\
**Replies:** 3\
**Last updated:** [April 26, 2023, 11:58am UTC](https://forum.dynamobim.com/t/help-with-identifying-common-paths/88970 "2023-04-26T11:58:56Z")

</div>

Hi, I am currently researching find about Path Of Travel. At the moment I have a list of Path of Travel Elements, that I have generated in dynamo using the create method. The Path of travel lines look at two different …

---

## [Creating a 'for loop' as index for GetItemAtIndex](https://forum.dynamobim.com/t/creating-a-for-loop-as-index-for-getitematindex/88442)

<div class="topic-metadata">

**Author:** [@kylemagpantay222](https://forum.dynamobim.com/u/kylemagpantay222)\
**Replies:** 4\
**Last updated:** [April 12, 2023, 12:43pm UTC](https://forum.dynamobim.com/t/creating-a-for-loop-as-index-for-getitematindex/88442 "2023-04-12T12:43:28Z")

</div>

Good day! I would like to ask about ‘for loops’ in Dynamo. What I’m trying to achieve is that I would like to automatically place ‘Flow’ values on every Air Terminal in a certain space based on the spaces’ ‘Specified Su…

---

## [Element.Location returns inaccurate result](https://forum.dynamobim.com/t/element-location-returns-inaccurate-result/23936)

<div class="topic-metadata">

**Author:** [@jshial](https://forum.dynamobim.com/u/jshial)\
**Replies:** 12\
**Last updated:** [April 6, 2023, 11:37am UTC](https://forum.dynamobim.com/t/element-location-returns-inaccurate-result/23936 "2023-04-06T11:37:57Z")

</div>

Hi all, I found that Element.Location returns inaccurate result on several beams. How come? Thx!

---

## [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 …

---

## [Use caution when upgrading to Revit 2022.1.3](https://forum.dynamobim.com/t/use-caution-when-upgrading-to-revit-2022-1-3/87362)

<div class="topic-metadata">

**Author:** [@truevis](https://forum.dynamobim.com/u/truevis)\
**Replies:** 7\
**Last updated:** [March 14, 2023, 7:35pm UTC](https://forum.dynamobim.com/t/use-caution-when-upgrading-to-revit-2022-1-3/87362 "2023-03-14T19:35:01Z")

</div>

My primary Dynamo client recently upgraded to Revit 2022.1.3 (build 22.1.30.34) and most of their Revit 2022 graphs (which were working in build 22.0.2.392) don’t work anymore. It has a new Dynamo version, apparently. I …

---

## [How to export To NWC files using Dynamo](https://forum.dynamobim.com/t/how-to-export-to-nwc-files-using-dynamo/63272)

<div class="topic-metadata">

**Author:** [@amarkonathala](https://forum.dynamobim.com/u/amarkonathala)\
**Replies:** 7\
**Last updated:** [December 22, 2022, 9:38am UTC](https://forum.dynamobim.com/t/how-to-export-to-nwc-files-using-dynamo/63272 "2022-12-22T09:38:56Z")

</div>

Hi, How to Export NWC from 3D View for all list of Opened Files in Revit Using Dynamo Exporting One by One is bit Problem, Howover we can export all opened files to IFC in a single click but whereas is the bit Problem!…

---

## [Refer to variable names between two codeblock nodes](https://forum.dynamobim.com/t/refer-to-variable-names-between-two-codeblock-nodes/83919)

<div class="topic-metadata">

**Author:** [@vcat](https://forum.dynamobim.com/u/vcat)\
**Replies:** 4\
**Last updated:** [December 9, 2022, 9:35am UTC](https://forum.dynamobim.com/t/refer-to-variable-names-between-two-codeblock-nodes/83919 "2022-12-09T09:35:16Z")

</div>

Is it possible to refer to variables between two codeblock nodes? I’d like to define some points/ lines or other values and store them in variables that need to be referred to throughout the dynamo graph. Please guide if…

---

## [Angle brackets in design script](https://forum.dynamobim.com/t/angle-brackets-in-design-script/83908)

<div class="topic-metadata">

**Author:** [@vcat](https://forum.dynamobim.com/u/vcat)\
**Replies:** 1\
**Last updated:** [December 8, 2022, 12:23pm UTC](https://forum.dynamobim.com/t/angle-brackets-in-design-script/83908 "2022-12-08T12:23:15Z")

</div>

I’m trying to understand the use of angle brackets in the syntax and their use with lists. It doesn’t make sense from the documentation. Can someone please explain it. e.g. a = \[1, 3, 5, 7\]; b = \[11, 12, 13\]; b\<1\>+a\<2\>;…

---

## [Method Python Faster exist?](https://forum.dynamobim.com/t/method-python-faster-exist/83065)

<div class="topic-metadata">

**Author:** [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Replies:** 2\
**Last updated:** [November 13, 2022, 4:57pm UTC](https://forum.dynamobim.com/t/method-python-faster-exist/83065 "2022-11-13T16:57:45Z")

</div>

Hello, Is there a method (in Python or Designscript) faster than those applied here. To create a list of numbers relative to a median with a defined step. DesignScript: Val\_center; Step; Nb\_val; Val\_center-Nb\_val\*…

---

## [Problem with For Loop inside a Code Block](https://forum.dynamobim.com/t/problem-with-for-loop-inside-a-code-block/82729)

<div class="topic-metadata">

**Author:** [@DavidMena](https://forum.dynamobim.com/u/DavidMena)\
**Replies:** 5\
**Last updated:** [November 4, 2022, 5:24pm UTC](https://forum.dynamobim.com/t/problem-with-for-loop-inside-a-code-block/82729 "2022-11-04T17:24:42Z")

</div>

Hi everyone. I’m having trouble trying to write a simple For Loop inside a Code Block. As seen in the image I have a collection of solids representing exterior areas each one. And a definition for my Green color. What…

[Next page](https://forum.dynamobim.com/tag/designscript/23.md?match_all_tags=true&page=1&tags%5B%5D=designscript)
