private void PostCreateFrame() { try { frame = this.GetFrame(); acc = frame.GetSimpleObject <IAcceleration>("Object should have acceleration"); angvel = frame.GetSimpleObject <IAngularVelocity>("Object should have angular velocity"); vel = frame.GetSimpleObject <IVelocity>("Object should have velocity"); angacc = frame.GetSimpleObject <IAngularAcceleration>("Object should have angular acceleration"); } catch (Exception e) { e.ShowError(10); IPosition p = this; p.Parent = null; throw e; } }