Hi Everyone,
I am experiencing a couple of File Dialog bugs when inputing data to GDL Objects via the GDL XML Addon. I figured the developer community is more likely to have experienced these issues.
OSX Bug
On OSX 10.6.8 AC14, the following line opens the file dialogue but does not enable the "Open" button even though the XML file is in the Folder. Only the "Cancel" button is enabled.
XmlFilename = ImportData.xml
channel = OPEN ("XML", XmlFilename, "rd")
channel = OPEN ("XML", XmlFilename, "r") , with only the 'r' flag, does not return the file regardless of what directory it has been placed in. That iss, root directory, user home directory, user Documents directory or Archicad Data folder.
Win XP 32bit Bug
On WinXP, the 'd' flag does not trigger a File Dialog and the OPEN function returns -1.
channel = OPEN ("XML", XmlFilename, "r") , with only the 'r' flag, searches the users "My Documents" folder and returns the XML file for parsing.
Once the XML file has been opened on WIN XP it can be parsed without an issue.
I'd really like the user to locate the folder containing the XML files. Has anybody experienced these issues and are there any fixes or work arounds?
Regards,
Nicholas