Message 1 of 6
Shared Parameter change cause exception from a running form

Not applicable
11-17-2011
04:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to change an instance shared parameter value from a .net win form which has been shown by running an external command.
after changing the value of parameter of an element, the new value will be shown in the property panel, but when saving the model, the property has been restored to the previous value.
I tried Transaction but get following error:
Autodesk.Revit.Exceptions.InternalException was unhandled
Message=An unexpected managed exception was thrown by internal Revit code.
Source=RevitAPI
StackTrace:
at Autodesk.Revit.DB.Transaction.Commit()
...
Any Idea?