Get All Visible Properties for a Tree Object

Goal: Get all visible properties for a native tree object and then print their captions and string values.

Code:

force = Model.Analyses[0].AddForce()
for forceProperty in force.VisibleProperties:
    print(forceProperty.Caption + " | " + forceProperty.StringValue)