Thanks Jeremy for the quick reply,
actually I know how to create Radial Arrays, the problem is how to make parametric the radial array "properties": angle, radius, number. It means, that my plugin will generate a RFA that allows the user to change the angle, radius, and number of copies using the Family types dialog.
I have seen that for constraining the number of copies, I have to do something like:
Extrusion extrusion = CreateBox(doc);
Autodesk.Revit.DB.View pView = findElement(typeof(ViewPlan), "Ref. Level", doc) as Autodesk.Revit.DB.View;
var offset = new XYZ(UnitUtils.ConvertToInternalUnits(-5, DisplayUnitType.DUT_MILLIMETERS), 0, 0);
RadialArray radialArray = RadialArray.Create(doc, pView, extrusion.Id, 6, Line.CreateBound(offset, XYZ.BasisZ + offset), 60*Math.PI/180, ArrayAnchorMember.Second);
doc.Regenerate();
//parametric number of copies
FamilyParameter familyParam = doc.FamilyManager.AddParameter("ArrayElements", BuiltInParameterGroup.PG_CONSTRAINTS, ParameterType.Integer, true);
radialArray.Label = familyParam;
but, how to constraint using the REVIT API the angle and radius of the Radialarray element?
Thanks in advance