示例#1
0
        private static List<string> AcDictToList(AXDBLib.AcadDatabase database)
        {
            List<string> lstDict = new List<string>();
            AXDBLib.AcadDictionaries dicts = database.Dictionaries;
            AXDBLib.AcadObject dictObj = dicts.Item("ProjectManager");
            AXDBLib.AcadDictionary dict = dictObj.ObjectID()

            foreach (AXDBLib.AcadXRecord xr in dict.)
            {
                xr.GetXRecordData(();
            }
                



                //for (int i = 0; i < database.Dictionaries.Count; i++)
                //{
                //    AXDBLib.AcadDictionaries x = database.Dictionaries.Item(i);
                //    lstDict.Add(database.Dictionaries.);
                //}

                //try
                //{

                //}
                //catch(System.Exception ex)
                //{ }

                //foreach (AXDBLib.AcadDictionary x in database.Dictionaries)
                //{
                //    lstDict.Add(x.Name);
                //}
                return lstDict;
        }
示例#2
0
        private static List <string> AcLayersToList(AXDBLib.AcadDatabase database)
        {
            List <string> lstlay = new List <string>();

            foreach (AXDBLib.AcadLayer lay in database.Layers)
            {
                lstlay.Add(lay.Name);
            }
            return(lstlay);
        }