Here is an example that you might find useful.
https://github.com/dalefugier/SampleCsCommands/blob/master/SampleCsExtrusion.cs
Here is an example that you might find useful.
https://github.com/dalefugier/SampleCsCommands/blob/master/SampleCsExtrusion.cs