It should work the other way around as well: first import a file and then enable gable roofs by pressing G.