Dynamo Code Block Syntax

Dynamo Code Block Syntax

andrew8QEC8
Advocate Advocate
878 Views
1 Reply
Message 1 of 2

Dynamo Code Block Syntax

andrew8QEC8
Advocate
Advocate

Following this tutorial from the Aussi Bim Guru https://www.youtube.com/watch?v=Ip8Icu2Hpso

Why is this code block giving me the red error: 

Error: ';' is expected

Dynamo 7_28_2023 2_57_33 PM.png

How to you get a code block node to have an input plug in for the wires?

0 Likes
Accepted solutions (1)
879 Views
1 Reply
Reply (1)
Message 2 of 2

ralphdenhaan
Collaborator
Collaborator
Accepted solution

Hi,

 

You are required to replace the number 1 with a letter as your input is in the form of a list

 

OLD
vert= 1[0];
hori= 1[1];

 

NEW

to  vert= l[0];
hori= l[1];

 

ralphdenhaan_0-1690610923594.png

 

Select Accept as Solution and Likes are always welcome. 


Ralph den Haan, (Lazy) BIM Specialist


LinkedIn | LazyBIM Blog


 

0 Likes