You are on page 1of 1

Code blocks allow you to code manually using DesignScript, which is Dynamos programming

language. But several Dynamo users do not have a programming background. So to help
understand DesignScript, you can use the node to code option to help you understand the
syntax. Or, you can simply use node to code to reduce the size of your graphs. To see how this
works, select all the Point.ByCoordinates nodes in the exercise file. Next, right-click and select Node
to Code. This converts the selected nodes into DesignScript in a Code Block. Two variables were
created for the values in the Number nodes, and two inputs were created. Click Undo in the Quick
Access Toolbar. Next, select all the nodes, right-click, and select Node to Code. Now all of the nodes
are replaced with a single Code Block. And, you can see the syntax that is used to create the same
four points. Be aware of the fact that the names of the nodes are a part of the DesignScript, because
nodes use the same programming language. Code blocks are simply a bridge from visual
programming to text-based programming.

You might also like