Exemplo n.º 1
0
/// <summary>
        /// 操作HeaderTableDataManage.HeaderTableData,构造图头表,headerTableData中的key格式为“#Field”;
/// </summary>
/// <param name="allAttriLst">未经处理的图头表定义中的属性tag数据;格式为“#Field”</param>
        public static void BuildHeaderTable(List <string> allAttriLst)
        {
            for (int i = 0; i < allAttriLst.Count(); i++)
            {
                string tmpArrti = allAttriLst[i];
                if (HeaderTableDataManage.HeaderTableData.ContainsKey(tmpArrti))
                {
                    string tmpAttriValue       = HeaderTableDataManage.HeaderTableData[tmpArrti];
                    string headerTableBlckName = GetHeaderTableBlockName();
                    VDAttributeHelper.setAttrValue(DrawCommonData.activeDocument, headerTableBlckName, tmpArrti, tmpAttriValue);
                    DrawCommonData.activeDocument.Redraw(true);
                }
            }
        }
Exemplo n.º 2
0
        public static List <string> GetHeaderTableAllAttri()
        {
            string headerTableBlckName = GetHeaderTableBlockName();

            return(VDAttributeHelper.getAllAttrName(DrawCommonData.activeDocument, headerTableBlckName));
        }