Message 1 of 2
Not applicable
05-04-2020
05:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I am trying to add a new parameter to a family, in order to get that I do this
var familySymbol = (FamilySymbol)annotation.ToList()?.First();
var famDoc = this._uiDocument.Document.EditFamily(family.Family);
using (var trans = new Transaction(famDoc))
{
trans.Start("Adding parameter");
var parameterType = ParameterType.Image;
famDoc.FamilyManager.AddParameter("Symbol image", BuiltInParameterGroup.INVALID, parameterType,
true);
trans.Commit();
}But a error occurs, "Instance parameter of image type is not allowed."
Can I add a image as a parameter using Revit Api?
Solved! Go to Solution.