I am working on a project where I need to create an element (example a wall) and add shared parameters to it in Forge API.
I created the wall using Design automation API for Revit, but since there is no UI in Design Automation API, I was not able to create parameters
Is there a method like the below code, which we were able to write within transaction in Revit API.
if (element.LookupParameter(param).IsReadOnly == false)
{
if (!type.Name.Equals("Double"))
{
if (!string.IsNullOrEmpty(value.ToString()))
element.LookupParameter(param).Set(value.ToString());
}
else
{
if (!double.IsNaN((double)value))
element.LookupParameter(param).Set((double)value);
}
}
Is it possible to create instance and type parameters for a particular element in Design Automation API or do I have to use some other Forge API?
It would be great if someone could guide me with this.
Thank you