Esempio n. 1
0
        /// <summary>
        /// Build the node tree of the robot from Inventor
        /// </summary>
        public bool LoadRobotSkeleton(Progress <ProgressUpdate> progress = null)
        {
            try
            {
                RobotBaseNode = SkeletonBuilder.ExportSkeleton(progress);
                GC.Collect();
            }
            catch (InvalidComObjectException) // TODO: Don't do this
            {
            }
            catch (TaskCanceledException)
            {
                return(false);
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message);
                return(false);
            }

            return(RobotBaseNode != null);
        }