In Revit I have a sweep element inside a family and I would like to set its work plane programmatically.
Inside Revit I can achieve that by double-clicking my family and then select the sweep and click Edit Work Plane
. Here I can choose any named reference plane to be the work plane.
How would I do that using the revit API? The only entry associated with work planes I can find is the GetOrderedParameters()
method where one of its names is Work Plane
.
Update
What I found out so far is this:
var parameter = sweep.get_Parameter(BuiltInParameter.SKETCH_PLANE_PARAM);
parameter.Set("new parameter value");
But the SKETCH_PLANE_PARAM
parameter is read only. Is there a way to set it using another way?