I'm trying to create a region and it gives me a Index error:

index:11 size: 10
var xlsTemplateData = Context.getFile("Template.xlsx", Constants.LOCATION_SCRIPT)
myWorkbook = Context.createExcelWorkbook(Context.getSelectedFile(), xlsTemplateData);
myWorkSheet = myWorkBook.getSheets()[0];
myWorkSheet.addRegion(3, 4, 5, 6);

 

Thank you

Tags: ARIS Architect ARIS script