Message 1 of 9
eNoClassId error
Not applicable
04-12-2010
07:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all, I'm trying to append my own entity derived from AcDbEntity to database, but I'm receiving 409 error code (eNoClassId) in appendAcDbEntity. When I append e.g. new AcDbLine instead, everything works ok. I am using ObjectARX 2010.
It should be a slightly modified Line (I derive it from AcDbEntity, but AcDbLine produces the same problem), this is how I create it:
{code}
CProtLine *protLine = new CProtLine(); //calls CProtLine(): AcDbEntity() {}
protLine->startPoint = AcGePoint3d(pt1,pt1,pt1); //startPoint and endPoint are my attributes
protLine->endPoint = AcGePoint3d(pt2,pt2,pt2);
...
AcDbObjectId retId = AcDbObjectId::kNull;
Acad::ErrorStatus es = pBlockTableRecord->appendAcDbEntity(retId, protLine); //here 409 error code is produced
{code}
(all access to database and record tables is ok).
Can anybody help me, please ? What's wrong and how should I fix it ? I can provide more code, if necessary...
Thanks. David Edited by: [email protected] on Apr 12, 2010 2:16 PM
It should be a slightly modified Line (I derive it from AcDbEntity, but AcDbLine produces the same problem), this is how I create it:
{code}
CProtLine *protLine = new CProtLine(); //calls CProtLine(): AcDbEntity() {}
protLine->startPoint = AcGePoint3d(pt1
protLine->endPoint = AcGePoint3d(pt2
...
AcDbObjectId retId = AcDbObjectId::kNull;
Acad::ErrorStatus es = pBlockTableRecord->appendAcDbEntity(retId, protLine); //here 409 error code is produced
{code}
(all access to database and record tables is ok).
Can anybody help me, please ? What's wrong and how should I fix it ? I can provide more code, if necessary...
Thanks. David Edited by: [email protected] on Apr 12, 2010 2:16 PM