API for assembly

Hello,

We have one problem statement for that we need to creat a macro for solidwork 

the macro need to look in to assemble make a parallel/ coincident/ distance mate from the already existing or placed plane to assemble planes with out changing the or movement of the part from existing place 

It is possible to create a such macro?