Skip to content

Instantly share code, notes, and snippets.

@sheetd
Created January 26, 2018 21:32
Show Gist options
  • Save sheetd/6a903ba62eb4537faa47993869dd5a03 to your computer and use it in GitHub Desktop.
Save sheetd/6a903ba62eb4537faa47993869dd5a03 to your computer and use it in GitHub Desktop.
// Outputes attributes (length in this case) of a feature to the console
// Let myGS (OpenBodyFeature)
Let myList (List)
Let myFeature (Curve)
Let myLength (Length)
Let sID (String)
Let i (Integer)
myList = myGS.Query("Curve" , "")
Notify("Extracting features: " , myList.Size() )
Trace(1,"Report Run: " + DateFormat("%H:%M"))
i = 1
for i while i <= myList.Size() {
myFeature = myList.GetItem(i)
sID = myFeature.Name()
myLength = length(myFeature)
Trace(1, "# : #", sID , myLength)
i = i + 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment