Declaring variables in iLogic

Top  Previous  Next

I've found this helpful:

 

https://www.autodesk.com/autodesk-university/article/iLogic-Best-Practices-and-Fundamentals-for-Success

 

They recommend explicitly declaring variables, like this:

 

 

Dim cylinderHeight As Double = Parameter("CylinderHeight")

Dim fileName As String = "This is a string value!"

Dim holeCount As Integer = 2

Dim occurrenceName As String = String.Empty

Dim plateWidth As Double = Nothing

 

 

Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)