zoukankan      html  css  js  c++  java
  • EPLAN API 入门系列 提高篇(How to get PropertyValue?)

    How to get PropertyValue?

     1         MultiLangString strValue = (MultiLangString)object.GetPropertyValue(object.Properties[j].Id);
     2         string strDesignation = object.Properties[j].Designation;
     3         string sPropertyFullName = strDesignation + ":" + _pCERICommon.GetMulValue(strValue);
     4 
     5         public string GetMulValue(MultiLangString oMultiLangString)
     6         {
     9             string sLang = "zh_CN";
    10 
    11             Eplan.EplApi.Base.ISOCode l = new Eplan.EplApi.Base.ISOCode(sLang);
    12             Eplan.EplApi.Base.ISOCode.Language m_lang = l.GetNumber();
    13             string sValue = oMultiLangString.GetString(m_lang);
    14             if (sValue.Trim() == "")
    15             {
    16                 sLang = "??_??";        
    17 l = new Eplan.EplApi.Base.ISOCode(sLang); 18 m_lang = l.GetNumber(); 19 20 sValue = oMultiLangString.GetString(m_lang); 21 } 22 23 return sValue; 24 }


     

  • 相关阅读:
    线段树优化dp(elect选择)
    gdb调试
    无参装饰器
    3.23作业
    3.22周末作业
    函数对象与闭包函数
    3.20作业
    3.19作业
    名称空间与作用域
    函数参数的使用
  • 原文地址:https://www.cnblogs.com/AriLee/p/2869975.html
Copyright © 2011-2022 走看看