How to add library feature by macro?

Hello, 

I have library feature. When drag and drop it to part it requires Placement Plane (the first screenshot)
Then it requires Sketch Segment, Sketch Point and Placement Plane (the second screeshot)
I want to create macro, that will populate library feature. For example as input I have face and sketch with lines and points. I choose Face+Sketch by ctrl and Run macro, it should take face as Placement Plane for first step, and for 3rd ref. Sketch entities will be the first and second references.