How to edit a sketch of Extrusion?

How to edit a sketch of Extrusion?

Anonymous
Not applicable
862 Views
2 Replies
Message 1 of 3

How to edit a sketch of Extrusion?

Anonymous
Not applicable

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);

...

863 Views
2 Replies
Replies (2)
Message 2 of 3

Joe.Ye
Alumni
Alumni

 

Can you try this way?

 

CurveArrArray arrArray = Extrusion.Sketch.Profile;

arrArray.Clear();

arrArray.Append(CurveArray);

 

Not sure if this helps.

 

 

CurveArrArray 


Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
0 Likes
Message 3 of 3

arautio
Advocate
Advocate

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.

0 Likes