Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to edit a sketch of Extrusion?

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
728 Views, 2 Replies

How to edit a sketch of Extrusion?

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

...

2 REPLIES 2
Message 2 of 3
Joe.Ye
in reply to: Anonymous

 

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
Message 3 of 3
arautio
in reply to: Joe.Ye

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.

Post to forums  

Forma Design Contest


Rail Community