ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Query about "AcDbDatabase::readDwgFile" input

1 REPLY 1
Reply
Message 1 of 2
Bhong.ND
371 Views, 1 Reply

Query about "AcDbDatabase::readDwgFile" input

Hi,

 

Whether is it ok to pass relative file path as input to "AcDbDatabase::readDwgFile" method?

 

In our application, we traverse xRef graph.

These xRefs can be stored with relative path to the main parent drawing.

While debugging xRef traversal, found that "AcDbDatabase::readDwgFile" is working fine with relative paths on Windows xp (64 bit) machines but same code is failing on Windows 7 (64 bit) machine.

 

Also tried similar code in an independent test arx command  on Windows XP (64 bit) but there also "AcDbDatabase::readDwgFile" is failing for relative paths and working fine with full paths.

 

So confused with expected input for "AcDbDatabase::readDwgFile".

If full path is always requried for ""AcDbDatabase::readDwgFile" then why it is working fine in my main application on XP where relative paths were given.

 

Thanks a lot for your time and support.

 

With regards

ND.

 

 

1 REPLY 1
Message 2 of 2
owenwengerd
in reply to: Bhong.ND

I would guess that readDwgFile will open files relastive to the current working directory, whereas the xref path is relative to the directory containing the host database drawing file. I don't think you can assume these are always the same directoryor  using the same search path.

--
Owen Wengerd
ManuSoft

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost