DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

input ascii file to diadem with ascii-import filter

Hello,
i want to import an ascii-file to diadem7.02 and want to save it as an .DAT-File.
i do this with Fileload and with the ascii-import filter. My problem is, when i want to record a autosequence, and i open the ascii-import filter und push the Ctrl-A key, it doesn´t record this window in the autosequence.
Is this unpossible in DIAdem or have anyone a solution for it.
0 Kudos
Message 1 of 4
(4,231 Views)
Hi Bob,

You can programmatically control the ASCI Import Wizard. Here is the sequence of commands to do so:

ShowDialog = 0 ' 0=No, 1=Yes
Call AsciiAssocSet(AsciiFilePath, AsciiSTPFilePath) ' assign the STP file
Call AsciiLoad(AsciiFilePath, ShowDialog) ' load the ASCII file
Call AsciiAssocDel(AsciiFilePath) ' decouple the *.STP from this file extension

Give that a try, and please do ask again if you have additional questions.

Regards,
Brad Turpin
Message 2 of 4
(4,231 Views)
Thank you Brad for your help,

but this solution is only for Diadem 8 and i have version 7.02.
I have hardly experience in Diadem 8 and nothing in vbs-programming so i had to solve this problem in Diadem 7.
Download All
0 Kudos
Message 3 of 4
(4,231 Views)
Bob,

You're quite right. With version 7.02 you only have the option of Autosequence code (*.AUT), and I sent you a VBScript snippet. It sounds like you've already changed the syntax, but just in case, and perhaps for any others listeneing in who also want the (*.AUT) syntax, it's:

L1:= 0; {0=No Dialog, 1=Show Dialog}
AsciiAssocSet(AsciiFilePath, AsciiSTPFilePath); {assign the STP file}
AsciiLoad(AsciiFilePath, L1); {load the ASCII file}
AsciiAssocDel(AsciiFilePath); {decouple the *.STP from this file extension}

Regards,
Brad Turpin
0 Kudos
Message 4 of 4
(4,231 Views)