www.mxdraw.com
内容索引主面
前一个向上下一个
McDbAttributeDefinition 类

块表中的属性定义对象

C++
class McDbAttributeDefinition : public McDbText;

McDbAttributeDefinition.h

例如:遍历块表记录的属性定义对象

    AcDbObjectPointer<AcDbBlockTableRecord> spBlkRec(blkRecId,McDb::kForRead);
    if(spBlkRec.openStatus() == Acad::eOk)
    {
        McDbBlockTableRecordIterator* pIterator = NULL;
        spBlkRec->newIterator(pIterator);
        if(pIterator != NULL)
        {
            std::auto_ptr<McDbBlockTableRecordIterator> spIterator(pIterator);
            for(;!pIterator->done();pIterator->step())
            {
                AcDbObjectId entId;
                pIterator->getEntityId(entId);
                AcDbObjectPointer<McDbAttributeDefinition> spAttribDef(entId,AcDb::kForRead);
                if(spAttribDef.openStatus() != Acad::eOk)
                {
                    continue;
                }

                if(spAttribDef->isInvisible() )
                {
                    continue;
                }

                // 找到一个属性定义
            }
        }
    }
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!