I have a protocol that is supposed to read both Chemdraw (cdx) or Skc files. The name of the dile is defined as a global property: eg: \\scitegic\data\visiers\test.cdx or \\scitegic\data\visiers\test.skc.
Before that I have a custom filter that directs the file to a skc reader or to a chemdraw reader, like this:
File rlike 'cdx';
will go to the chemdraw reader.
and
File rlike 'skc';
will go to the skc reader.
If the file is an skc file, it works fine, and the file is read without problem.
If the file is a cdx file I get this error:
ChemDraw_Error
Problems creating Accord Chemistry Object (status code = 26)
If I try to open the file \\scitegic\data\visiers\test.cdx
directly with a chemdraw reader in a different protocol, it reads it just fine.
Any suggestion to solve this problem?
Thanks
Before that I have a custom filter that directs the file to a skc reader or to a chemdraw reader, like this:
File rlike 'cdx';
will go to the chemdraw reader.
and
File rlike 'skc';
will go to the skc reader.
If the file is an skc file, it works fine, and the file is read without problem.
If the file is a cdx file I get this error:
ChemDraw_Error
Problems creating Accord Chemistry Object (status code = 26)
If I try to open the file \\scitegic\data\visiers\test.cdx
directly with a chemdraw reader in a different protocol, it reads it just fine.
Any suggestion to solve this problem?
Thanks