当前位置:   article > 正文

查看一个实体的类型(包括自定义实体)_acdbsolid

acdbsolid
软件架构师何志丹
static void BJJMyGroupMyCommand () {
  while ( true )
  {
   ads_point adsPt;
   ads_name entName;
   AcDbObjectId entId;
   AcDbEntity* pEnt;
   if(acedEntSel(_T("\n请选择实体或<Esc键退出>:"), entName, adsPt) != RTNORM)
    return ;
   acdbGetObjectId(entId, entName);
   if (acdbOpenObject(pEnt, entId, AcDb::kForRead) != Acad::eOk)
    return ;

   acutPrintf(_T("Name:"));
   acutPrintf(pEnt->isA()->name());
   acutPrintf(_T("\r\n"));

   pEnt->close();
  }
 }

部分实体的继承关系

//      AcDbEntity
//        AcDbText
//          AcDbAttribute
//          AcDbAttributeDefinition
//        AcDbBlockBegin
//        AcDbBlockEnd
//        AcDbSequenceEnd
//        AcDbBlockReference
//          AcDbMInsertBlock
//        AcDbVertex
//          AcDb2dVertex
//          AcDb3dPolylineVertex
//          AcDbPolygonMeshVertex
//          AcDbPolyFaceMeshVertex
//          AcDbFaceRecord
//        AcDbCurve
//          AcDbPolyline
//          AcDb2dPolyline
//          AcDb3dPolyline
//          AcDbArc
//          AcDbCircle
//          AcDbLine
//          AcDbMline
//        AcDbPoint
//        AcDbFace
//        AcDbPolyFaceMesh
//        AcDbPolygonMesh
//        AcDbTrace
//        AcDbSolid
//        AcDbShape
//        AcDbViewport
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/114391
推荐阅读
相关标签
  

闽ICP备14008679号