Message 1 of 3
FamilyParameter Set Value

Not applicable
02-21-2013
02:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
While trying to set the value of a FamilyParameter in Revit, I get this error
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
The code is as follows (and yes, it is inside a BeginTransaction) ...
For Each rvtFamilyParameter As Autodesk.Revit.DB.FamilyParameter In rvtFamilyManager.Parameters
If rvtFamilyParameter.Definition.Name = strName Then
rvtFamilyManager.Set(rvtFamilyParameter, strValue) ' Error occurs right here.
Exit For
End If
Next
Any ideas? Is it really bad memory?
Thanks,
Randy