In Origin C, Worksheet class has GetASCIMP, SetASCIMP functions. It seems though they were not documented. There is also a utility function AscImpReadFileStruct that will initialize the ASCIMP struct from a given ascii file.
Try this,
void turn_of_rename_wks()
{
ASCIMP ascimp;
Worksheet wks = Project.ActiveLayer();
wks.GetASCIMP(ascimp);
out_int("Rename wks =", ascimp.iRenameWKS);
ascimp.iRenameWKS = 0;// turn off wks rename;
wks.SetASCIMP(ascimp);
}
CP
Edited by - cpyang on 03/21/2003 5:03:25 PM