Disconnect sway bar question

When measuring then setting ride height, I understand about loosening the pivot nuts, but what about disconnecting the front sway bay?

And then on the actual alignment, should the front sway bar be loose or attached?
Thanks