This question has been asked before, but unfortunately had no responses: https://forum.solidworks.com/message/23031
The CreateRelativeView method is documented here
How do I specify the 2 faces required for the relative view? Trying to use the method now does nothing and returns a null object.
SolidworksApi macros