public object ESRI_CoordSys_Assign(ResultBuffer rb) { object result; try { string argument = LspUtil.GetArgument(rb, 0, null); if (string.IsNullOrEmpty(argument)) { result = null; } else { Document arg_1F_0 = AfaDocData.ActiveDocData.Document; if (AfaDocData.ActiveDocData.DocDataset.FeatureServices.Count > 0) { result = null; } else if (MSCPrj.AssignPRJFile(argument)) { result = true; } else { result = false; } } } catch { result = null; } return(result); }