I am using the below code to get an array of attributes and during execution autoit crashes. The crash happens at line '$aAttributes = $oSiteInfo.getAttributes' The method '.getAttributes' returns an array Any one know what might be causing the crashing ? Big thanks for any help. Shane $oModelSpace = $oAcadActDoc.modelspace For $i = 1 TO $oModelSpace.COUNT - 1 iF $oModelSpace.ITEM($I).objectname = "AcDbBlockReference" Then If $oModelSpace.ITEM($I).name = "SiteInfo" and $oMod