How to edit a sketch of Extrusion? When I try to replace the CurrArrArray, It told me that "Collection is read-only".
...
Extrusion.Sketch.Profile.Clear();
Extrusion.Sketch.Profile.Append(CurveArray);
...
Can you try this way?
CurveArrArray arrArray = Extrusion.Sketch.Profile;
arrArray.Clear();
arrArray.Append(CurveArray);
Not sure if this helps.
CurveArrArray
I am trying to accomplish the same thing, and tried Joe.Ye's suggestion however:
CurveArrArray arrArray = Extrusion.Sketch.Profile;
arrArray.Clear();
arrArray.Append(CurveArray);
This also reports back that the array is read only. Revit 2019.
I am just trying to edit a void extrusions profile by replacing it with a new curve array.
Any help would be greatly appreciated.
Can't find what you're looking for? Ask the community or share your knowledge.