Exemple #1
0
        public static string tryGetDocBoxLabel()
        {
            string D30_Path = file_structure.getPathFor("D30");

            string docBoxLabelGUID = System.IO.File.ReadAllText(D30_Path);

            Guid searchGuid = new Guid(docBoxLabelGUID);

            Rhino.DocObjects.ObjRef docBox = new Rhino.DocObjects.ObjRef(searchGuid);

            try
            {
                string test = docBox.TextEntity().ToString();

                return(searchGuid.ToString());
            }
            catch (Exception e)
            {
                return("error");
            }
        }