Dont think so, in my oppinion the painting is older than the sword. The style rocaille elements on the hilt are more likely mid of 18th century.
But the attribution to the Batthyány family is most likely, the coat of arms gives the clue, but it is still a pelican, not a swan...
Definitely a sword for a museum collection!