If the court has passed an order for attachment before judgment agaisnt the property and the defendant has sold the property after receiving a notice from court in this effect, this it can be be a contempt of court.
‘An attachment before judgment is to enable the plaintiff to realize the amount of the decree, supposing a decree eventually made, from the defendant property’. This is the object of the Order 38 rule 5 of The Civil Procedure Code,1908 .
The power given to the Court to attach a deft.’s property before judgment, is never meant to be exercised lightly or without clear proof of the existence of the mischief aimed at in the rule.
You can initiate action as per law in this regard by consulting your advocate.