At the moment you need to look at the “building” boolean and the “isReceiving” function like shown here Is it possible, with Datasmith runtime, to wait for import to finish before running the rest of code?
There should be an event added at some point.