VANCOUVER, British Columbia (AP) _ A 33-year-old man accused of dangling his 21-month-old son from the third floor of an apartment building has been ordered to undergo psychiatric examination.

Richard Thomas Gaudry, who appeared Thursday in a provincial courtroom, is accused of unlawful confinement, breaking and entering, possession of a dangerous weapon and two counts of assault with a weapon.

Meanwhile, Gaudrey's former common-law wife said the toddler, Michael Gaudry, apparently was unharmed in the incident.

''He had a few scratches on his arms and cheeks, but he's fine,'' Natalie Hunt said.

The 21/2 -hour drama, witnessed by about 50 people, including reporters, cameramen and police, began about 8:40 a.m. Wednesday after the toddler was seized in the apartment.

At one point, Gaudry dangled his son out the window of the third-story apartment, holding him by the ankles with one hand and threatening to drop him. At another point, Gaudry held a knife to the boy's throat.

Several firefighters stood below the window holding blanket to catch to boy if he fell.

Police quoted neighbors as saying the father had been upset at losing custody of the child.

The child was rescued by police negotiators who talked to the father in a stairwell.