private DefinitionFile OpenSharedParametersFile(Autodesk.Revit.ApplicationServices.Application application) { Autodesk.Revit.DB.DefinitionFile sharedParametersFile = default(Autodesk.Revit.DB.DefinitionFile); sharedParametersFile = application.OpenSharedParameterFile(); return(sharedParametersFile); }
private DefinitionFile OpenSharedParametersFile(Autodesk.Revit.ApplicationServices.Application application) { StreamWriter stream = default(StreamWriter); stream = new StreamWriter(fullFile_Parameters); stream.Close(); application.SharedParametersFilename = fullFile_Parameters; Autodesk.Revit.DB.DefinitionFile sharedParametersFile = default(Autodesk.Revit.DB.DefinitionFile); sharedParametersFile = application.OpenSharedParameterFile(); return(sharedParametersFile); }