Message 1 of 2

Not applicable
02-29-2016
07:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have this code
public void CreateParameter(ExternalCommandData commandData) {
UIApplication uiapp = commandData.Application;
UIDocument uidoc = uiapp.ActiveUIDocument;
Document doc = uidoc.Document;
FamilyManager fam = doc.FamilyManager;
var param = fam.AddParameter("Size", BuiltInParameterGroup.PG_STRUCTURAL, ParameterType.Length, true);
fam.Set(param, 0.2);
}
Although I can't seen to run it in the Macro Manager --> http://i.imgur.com/1iaApXy.png
I've also tried running it as an Add-Ins External Tools and this message pops up --> http://i.imgur.com/ZIKpC8i.png
I'm new to Revit API so I'm not sure what I need to do to fix this. Any help would be great.
Solved! Go to Solution.