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.
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.
Access a broad range of knowledge to help get the most out of your products and services.