public override void InitializeAfterLoad(ref AnimatTools.DataObjects.Simulation dsSim, ref AnimatTools.DataObjects.Physical.PhysicalStructure doStructure) { if(m_strPrimaryAttachID.Trim().Length > 0) { AnimatTools.DataObjects.Physical.BodyPart rbPart = (AnimatTools.DataObjects.Physical.BodyPart) doStructure.FindBodyPart(m_strPrimaryAttachID, true); m_thPrimaryAttachment = new AnimatTools.TypeHelpers.LinkedBodyPartList(doStructure, rbPart, m_tpBodyPartType); } if(m_strSecondaryAttachID.Trim().Length > 0) { AnimatTools.DataObjects.Physical.BodyPart rbPart = (AnimatTools.DataObjects.Physical.BodyPart) doStructure.FindBodyPart(m_strSecondaryAttachID, true); m_thSecondaryAttachment = new AnimatTools.TypeHelpers.LinkedBodyPartList(doStructure, rbPart, m_tpBodyPartType); } }