What directories readDwgFile chech?

What directories readDwgFile chech?

Anonymous
Not applicable
288 Views
3 Replies
Message 1 of 4

What directories readDwgFile chech?

Anonymous
Not applicable
Hi,

 

Where can (or should) be dwg file if i
want read it like that:

 


AcDbDatabase *pDb = new
AcDbDatabase(Adesk::
color=#a000a0>kFalse
);


if ((es = pDb->
color=#880000>readDwgFile
("BLOCK.DWG")) !=
color=#0000ff>Acad
::eOk){


    delete pDb;


    return es;


}


 

0 Likes
289 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
AutoCAD searches on  the

given support pathes,

in Acad Options->Files

 

Bernd


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Hi,

 

Where can (or should) be dwg file if i
want read it like that:

 


AcDbDatabase *pDb =
color=#a000a0>new
AcDbDatabase(
color=#0000ff>Adesk
::kFalse);


if ((es = pDb->
color=#880000>readDwgFile
("BLOCK.DWG")) !=
color=#0000ff>Acad
::eOk){


    delete pDb;


    return es;


}


 

0 Likes
Message 3 of 4

Anonymous
Not applicable
It doesn't load unless i copy it to "autodesk map
5" directory 😞

 

In support file search path there a lot others
paths but it didn't work if i copy my dwg there.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

AutoCAD searches on  the

given support pathes,

in Acad Options->Files

 

Bernd


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Hi,

 

Where can (or should) be dwg file if
i want read it like that:

 


AcDbDatabase *pDb =
color=#a000a0>new
AcDbDatabase(
color=#0000ff>Adesk
::kFalse);


if ((es = pDb->
color=#880000>readDwgFile
("BLOCK.DWG")) !=
color=#0000ff>Acad
::eOk){


    delete pDb;


    return es;


}


 

0 Likes
Message 4 of 4

Anonymous
Not applicable
AcDbDatabase::readDwgFile() expects the filename
argument to be a full path.  It does not search along any search paths to
find the file.  You should use AcDbHostApplicationServices::findFile() to
find the file and get a full path before calling readDwgFile().


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Hi,

 

Where can (or should) be dwg file if i
want read it like that:

 


AcDbDatabase *pDb =
color=#a000a0>new
AcDbDatabase(
color=#0000ff>Adesk
::kFalse);


if ((es = pDb->
color=#880000>readDwgFile
("BLOCK.DWG")) !=
color=#0000ff>Acad
::eOk){


    delete pDb;


    return es;


}


 

0 Likes