In some cases we just want to invocate Civil 3D property dialogs for specific entities, let’s say an Alignment. But most commands are not customizable via APIs. Here the alternative idea is set the selection and then call the command. The following code uses AutoCAD Editor.Command API, available on 2015+
private static void ShowAlignProp(ObjectId id)
{
// test type as this command will not work for other types
if (id.ObjectClass != RXClass.GetClass(typeof(Alignment))) return;
Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
ed.SetImpliedSelection(new ObjectId[] { id }); // set selection
ed.Command(new string[] { "_AeccEditAlignmentProperties" }); // run command
ed.SetImpliedSelection(new ObjectId[0]); // clear selection
}