in version Revit2016 I have a problem, I want to collect the user has selected element, instead of letting the user re-select, I don't know if there is any way to solve it, just like I want to collect the information of the two columns selected on the way. Thank you
The ActiveDocument.Selection.GetElementIds() (or something close to that) - will be able to tell you the pre-selected elements when you start your command.