How to use OpenSharedParameterFile Method?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I spent whole afternoon trying to figure out how to use OpenSharedParameterFile Method...It seems easy, but when I debug the code, it always give me
"Error in readParamDatabase", it's internal exception..anybody know how to solve that?![]()
Really drive me crazy!
Thanks for any reply..T T
Here is my code:
string fileName = @"C:\Users\Administrator\Desktop\revit\w1\try\" + datefromuser + ".txt";
FileStream fs = File.Create(fileName);
commandData.Application.Application.SharedParametersFilename = fileName;
try
{
SharedParameterFile = commandData.Application.Application.OpenSharedParameterFile();
}
catch (Autodesk.Revit.Exceptions.ApplicationException) { }
DefinitionGroup sharedParameterGroup = SharedParameterFile.Groups.Create("RevitParameters");
I want to create a new shared paramter file and try to add some shared parameter..