Message 1 of 5

Not applicable
11-01-2014
03:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
This is nolonger working. get error "MoficationOutsideTransacionException" Attempt to modify the model outside of transaction. PramElem has correct value.
Using Revit 2015 and vb.net 2012
Public Sub ChangeParam(ByVal elem As Element)
Dim params As ParameterSet = elem.Parameters
Dim Parameter As Autodesk.Revit.DB.Parameter
Dim ParamElem As Double
If elem.Name.StartsWith("L") Then
For Each Parameter In params
If (Parameter.Definition.Name = "Leg") Then
ParamElem = Val(Leg) / 12
Parameter.Set(ParamElem)
End If
next
Thanks.
Bob V
Solved! Go to Solution.