Attractor point in DesignScript
This is my first try at DesignScript syntax. It is quite easy to understand and on-screen reference help seems to work well. It creates regular AutoCAD entities when you run. One of the most important concepts of this language is said to be a kind of associativity that updates objects when any parameter is changed while the script is running. However such associativity is not possible after the script has finished running. If you want to use the regular imperative style, you should use directive [imperative] in the script to tell it that variables are not actively associative. Unfortunately, I couldn’t find a suitable use of this associativity as DesignScript seems to want itself to be run endlessly. I’m a little disappointed about it because as far as I remember, even Generative Components had the ability to interact with the user via object translations. Maybe I’m doing something wrong here.
Here is the DesignScript code if you want to try this: [DS File]