Trouble Selecting Sets in Publish Settings

I am attempting to create a script to gather a few predefined 3d views as well as all sheets that appear in sheet list and create a sheet set of those views/sheets. I want to use that set to define what views/sheets are published to the BIM 360 web viewer. I have the script collecting the correct views and sheets and checking the boxes for them in the publish settings, the issue I have is that whenever I run the script the check box to include the set in the publish settings gets turned off. I have manually checked the box to include the set and saved but when I run the script the set is unselected. I attached screenshots of the check box I want to control as well as the script I am using. I am new to Dynamo and can’t find a solution, any suggestions would be appreciated.

1 Like