SetDefaultOpen sets the default open state for an object. (The equivalent of using the "Open By Default" checkbox on a reference.)
SetDefaultOpen iOpenState
SetDefaultOpen 1 ; object's default state is now "open"