示例#1
0
        private DefinitionFile OpenSharedParametersFile(Autodesk.Revit.ApplicationServices.Application application)
        {
            Autodesk.Revit.DB.DefinitionFile sharedParametersFile = default(Autodesk.Revit.DB.DefinitionFile);

            sharedParametersFile = application.OpenSharedParameterFile();

            return(sharedParametersFile);
        }
示例#2
0
        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);
        }