Hello all,

I have been developing for some time, but only about 6 weeks with autocad (and only with civil 3d).

I am looking for any suggestions on programmatically adding widenings to our offset alignments. We have 2 parallel offset alignments and usually over 40 widening groups. This is a tedious thing to enter by hand, so enter my involvement. I have code that will do it.

Im using VS 2019, C# .NET

left.OffsetAlignmentInfo.AddWidening();

The problem is that for 15 widenings, no problem. 20 takes an extra minute. by the time we get to 30, it is 4 or 5 minute wait for completion. I need it to run for 50 widenings or more to function. I let it run for 30 minutes on a longer one before my computer crashed for other reasons.

I have narrowed this thing down to just the function call, it is not the looping constructs I use around it, it just take the actual command that long to process once there are that many groups.

I don't know if there is an Object ARX way to attack this or if there is some mojo that one of you can suggest?

Thank you