www.mxdraw.com
|
返回标注属性的对象id类型变量值
McDbObjectId GetDimVarObjectId(int iType) const;
参数 |
说明 |
int iType |
该属性的类型值 |
返回字对象id类型变量值
例如: 函数实现代码如下
McDbObjectId GetDimVarObjectId(int iType) const { #define GetDimVarObjectIdCase(var,type) case type: return var; switch(iType) { GetDimVarObjectIdCase(m_dimblk, 342); GetDimVarObjectIdCase(m_dimblk1, 343); GetDimVarObjectIdCase(m_dimblk2, 344); GetDimVarObjectIdCase(m_dimldrblk,341); GetDimVarObjectIdCase(m_dimtxsty,340); GetDimVarObjectIdCase(m_dimltype,345); GetDimVarObjectIdCase(m_dimltex1,346); GetDimVarObjectIdCase(m_dimltex2,347); default: return McDbObjectId::kNull; } return McDbObjectId::kNull; }