I have created a script that enables batch creation of FamilyTypes (wall, floor, roof) by reading the parameter data from an excel workbook. The data is read from multiple sheets.
The problem is when one or more sheets are empty (for example when there is no need to batch create roof FamilyTypes) the scripts naturally generates an error because a lot of nodes are fed with empty lists.
This script will be used by multiple persons in the company with the Dynamo Player and I would like to avoid generating errors so as not to confuse the users.
Is there a way to stop a branch of a script if there is no data in the sheet? Or can I somehow allow the user in the Dynamo Player to limit the scope of the sheets that will be imported?