www.mxdraw.com
|
返回标注属性的实数类型变量值
double GetDimVarDouble(int iType) const;
参数 |
说明 |
int iType |
该属性的类型值 |
返回实数类型变量值
例如: 该函数实现代码如下:
double GetDimVarDouble(int iType) const { #define GetDimVarDoubleCase(var,type) case type: return var; switch(iType) { GetDimVarDoubleCase(m_dimaltf,143); GetDimVarDoubleCase(m_dimasz , 41); GetDimVarDoubleCase(m_dimcen ,141); GetDimVarDoubleCase(m_dimdle , 46); GetDimVarDoubleCase(m_dimdli , 43); GetDimVarDoubleCase(m_dimexe , 44); GetDimVarDoubleCase(m_dimexo , 42); GetDimVarDoubleCase(m_dimgap ,147); GetDimVarDoubleCase(m_dimlfac,144); GetDimVarDoubleCase(m_dimrnd , 45); GetDimVarDoubleCase(m_dimscale, 40); GetDimVarDoubleCase(m_dimtfac,146); GetDimVarDoubleCase(m_dimtm , 48); GetDimVarDoubleCase(m_dimtp , 47); GetDimVarDoubleCase(m_dimtsz ,142); GetDimVarDoubleCase(m_dimtvp ,145); GetDimVarDoubleCase(m_dimtxt ,140); GetDimVarDoubleCase(m_dimaltrnd,148); //// default: return 0.0; } return 0.0; }