over 1 year ago by Jerome Beresford
Hi, can you explain why there are semicolons on the end of the line profile.Append(Line.CreateBound(pt1, pt2)); I thought Python didn't use these line terminals? Thanks.
Arie Willem de Jongh over 1 year ago
Hi Jerome,
Nice catch, and yes, Python doesn't use a semicolon to end lines like C#. Python uses them not for line termination but to allow multiple statements on a single line. Perhaps, he copied the C# parts of the Revit API code examples, including the semicolon. If you remove the semicolon does the script still run?
Best,
Arie