What fails is that the curtain isn’t crafted, or that it isn’t placed in the building?
Maybe having deleted it via command needs you to manually place it again.
If it’s not being placed, there could be many reasons. Are your hearthlings free? Have you tried saving / reloading or closing and reopening the game?
Is the place where you want to place it blocked by other objects?
Edit: hmm some user complained about hearthlings not being able to place windows and doors, perhaps it’s related to your issue: Windows not placing during building but inventory quantity decreases