Message 1 of 2
insert error
Not applicable
01-05-2005
05:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm having a problem with the insert on a batch file conversion.
I have something like this for each file being opened:
.....
if (acDocManager->isApplicationContext())
{
es = acDocManager->appContextOpenDocument((char *)((SOpenDocRetStatus *)pData)->pDocName);
(Acad::ErrorStatus)((SOpenDocRetStatus *)pData)->es = es;
if (es == Acad::eOk)
{
pDoc = acDocManager->curDocument();
...........
acDocManager->lockDocument(pDoc, AcAp::kWrite);
es = db->readDwgFile(stBlockPath);
es = curDb->insert(objId, symbolName.c_str(), db);
delete db;
es = acDocManager->unlockDocument(pDoc);
........
In the curDb->insert I've got eWasOpenForWrite and the block is not inserted in the DWG.
Can anyone help me?
Thanks
David
I'm having a problem with the insert on a batch file conversion.
I have something like this for each file being opened:
.....
if (acDocManager->isApplicationContext())
{
es = acDocManager->appContextOpenDocument((char *)((SOpenDocRetStatus *)pData)->pDocName);
(Acad::ErrorStatus)((SOpenDocRetStatus *)pData)->es = es;
if (es == Acad::eOk)
{
pDoc = acDocManager->curDocument();
...........
acDocManager->lockDocument(pDoc, AcAp::kWrite);
es = db->readDwgFile(stBlockPath);
es = curDb->insert(objId, symbolName.c_str(), db);
delete db;
es = acDocManager->unlockDocument(pDoc);
........
In the curDb->insert I've got eWasOpenForWrite and the block is not inserted in the DWG.
Can anyone help me?
Thanks
David