Let's say I have:
Smeargle: Defense Curl, Power Trick, Swords Dance
If I Defense Curl to the max, and then Power Trick, will I be able to raise my attack?
i just tested this with that program you showed me, and no, you won't be able to.
Using defence curl will not raise your attack. The defence boost from defence curl will however still apply when switching defence with attack, making u have a higher attack after a defence curln then without one.