06-10-2008 10:28 AM
Hi There,
I am trying to select multiple files and load them through FileNameGet command.
Its very similar to the example given by you as below
Call FileNameGet("ANY", "FileRead", DataReadPath, "TDM data (*.tdm),*.tdm,Text Files Format A(*.txt),*.txt,Text Files Format B(*.txt),*.txt", "All.lst", True, "Data selection")
But with this command I am not able to get the FileDlgFilter information. This is very important for me because I am loading files which will have the same file extenstions but different file format.Various plugins will be created for this purpose. I would be able to call the required plugin keeping FileDlgFilter information.
Do you have any other solution for this or can you let me know if there is anything I am missing.
If you would suggest me to register the plugin, then I would like to add that even TDM file selection is not been recongnised in FileDlgFilter .
Looking forward for your earliest response.
Thanks,
Priya
06-11-2008 02:26 AM
06-11-2008 12:37 PM
I was thinking I would be able to handle this before calling in any plugin. But looks like this is the only other option left.
Thanks a lot.
Priya
03-12-2025 11:30 AM - edited 03-12-2025 11:33 AM
Hello
This is very old topic, but I think I don't need to create new one.
I'd like to know If something changed about this issue until today.
Because I'm struggling with the exactly same problem.
For example I need to use Dataplugin SEFRAM_REC (*.rec) and also SEFRAM_REC_2022 (*.rec) at the same time.
I don't know how to get name of selected dataplugin from FileNameGet dialog.
Is there a workaround of this problem?
Thank you in advance
John
03-17-2025 12:08 PM
As Walter Rick wrote in his post long, long ago the concept in DIAdem is not to select a certain plugin but just a file type. When you call the DataFileLoad command DIAdem tries to use all plugins assigned to this filetype in sequence as defined in the data plugin parameters:
So make sure that file format recognition is active in your plugins:
03-19-2025 10:18 AM
Hello
Thank's for the reply.
I'm afraid your method would not be applicable in my case.
I'll try to briefly explain why I'm doing this.
The Sefram *.rec data files are all in binary format. I need to use vendor's DataPlugin SEFRAM_REC and the newer version SEFRAM_REC_2022 for newer appliances.
The newer SEFRAM_REC_2022 DataPlugin can of course open older *.rec files as well.
However, there are some problems with these plugins.
When it comes to ASCII text files, I have other problems. For example, I have two csv data files from two different appliances. They are almost identical. There is no special word in the first line. The only difference between them is the character code page and the format of specific columns (e.g. DateTime field with seconds vs. field with microseconds). So I need to differentiate the two plugins, and it seems to me that the easiest way is to let the user select the correct plugin. Also, this is just an example. I could imagine many versions of almost indistinguishable csv formats.
I must admit that I have not been able to find an alternative dialog object (e.g. ActiveX) with the ability to return the selected filter line. I'll probably try to work around the problem via the user SUD.
John