Example #1
0
        /// <summary>
        /// Projects a connector space object to the metaverse
        /// </summary>
        /// <param name="objectType">The name of the metaverse object type to project the connector space object as</param>
        /// <returns>Returns the newly created metaverse object</returns>
        public MVObject Project(string objectType)
        {
            SyncServer.ThrowOnInvalidObjectType(objectType);

            string result = ws.Project(this.MAID.ToMmsGuid(), objectType, this.ID.ToMmsGuid());

            if (Guid.TryParse(result, out Guid mvid))
            {
                this.Refresh();
                return(SyncServer.GetMVObject(mvid));
            }
            else
            {
                SyncServer.ThrowExceptionOnReturnError(result);
                return(null);
            }
        }