关于eLockViolation
es=pBlockTable->getAt()为什么返回值是eLockViolation<BR>代码如下:AcGePoint3d startPoint(165.0,137.0,0.0);<BR> AcGePoint3d endPoint(224.0,216.0,0.0);<BR>
//initiate the instance of the line object
AcDbLine *pLine=new AcDbLine(startPoint,endPoint);
<BR> if(pLine==NULL)<BR> {<BR> return 0;<BR> }
<BR> //open the blocktable<BR> AcDbBlockTable *pBlockTable;<BR> Acad::ErrorStatus
<BR> es=acdbHostApplicationServices()->workingDatabase()<BR> ->getSymbolTable(pBlockTable,AcDb::kForRead);
<BR> if(es!=Acad::eOk)
{<BR> delete pLine;<BR> return 0;<BR> }
<BR> AcDbBlockTableRecord *pBlockTableRecord;<BR> es=pBlockTable->getAt(ACDB_MODEL_SPACE,<BR> pBlockTableRecord,AcDb::kForWrite);
得到的返回值 es为 eLockViolation,该怎么解决啊?
急啊,大侠救我,有些情况下就能得到eOK 的返回值。我是菜鸟!·!·!
页:
[1]