示例#1
0
        protected List <string> GetRealLayer(string lay)
        {
            //Document doc = Application.DocumentManager.MdiActiveDocument;
            //PromptSelectionResult ProSset = null;
            List <string> resultList = new List <string>();
            List <string> layerList  = MethodCommand.GetAllLayer();

            string layerName = "";

            if (lay.Contains("*"))
            {
                string temp = "";
                temp = lay.Split('*')[1];
                foreach (string laySpc in layerList)
                {
                    if (laySpc.EndsWith(temp))
                    {
                        resultList.Add(laySpc);
                    }
                }
            }
            else
            {
                resultList.Add(lay);
            }

            return(resultList);
        }