Tom,
 
Sorry for the late reply. I must admit, I did overlok the loadchan.gx but i'm afraid it still doesn't siut my needs. What I want to do is call loadchan.gx and load a channel, then call savegdb.gx, I can use setstring_sys to set the parameter block from my custom gx, then close the database without having to confirm to save the database. Under these conditions, when I manually re-open the database, the channel that I intended to load when running my custom gx is no longer loaded. The only way I have got this to work the way I want it to is to run my custom gx without closing the database, click the 'X' in the upper left corner of the database and answer 'yes' to the prompt to save.
 
Here are a few ideas I have:
 
One idea that I have(and I haven't tried it yet so I don't even know if it is possible) is to call an internal geosoft command I found in montaj.smn file. Beside the menu item 'Save Database Changes..' is ' the command '*ID_FILE_COMMIT' which I learned is an internal geosoft command. My idea is to call this from my custom.gx. Can you tell me if this is possible? I will still have to answer 'yes' to a prompt each time a database is closed but and this won't be a complete solution to the problem but at least it will be half the solution.
I also experimented with the iDispChanList_EDB() command in GX developer. I found it returns numbers that when I experimented with it were 173,174,175,.... Can you tell me how these numbers relate to the names of the channels. I was wondering if there's a way to do the inverse of this command; rather than the database giving me a list of the channels that are displayed I was wondering if there's a way for me to give the database a list of channels to display.
 
Aaron Balasch
Sky Hunter Technologies Inc.
Suite 101, 1725 10th Avenue S.W.
Calgary, Alberta T3C 0K1
Phone: (403)228-2175
Fax: (403)244-7955
email: [EMAIL PROTECTED]
----- Original Message -----
Sent: Monday, February 12, 2001 7:32 AM
Subject: RE: [geonet]: Importing

Aaron,
 
In the script menu there is a gx called loadchan.gx. This gx allows your to load individual channels via a .gs . If this does not meet your requirements, please contact me directly and we will try and find something that does.
 
Regards,
 
Tom Cuthbertson
Manager, Technical Support and Testing
Geosoft Inc.

Software and services for effective earth science decision-making. www.geosoft.com

Geosoft Inc.
8th Floor
85 Richmond St. W.
Toronto, Ontario
Canada M5H 2C9

Tel. (416) 369-0111
Fx. (416) 369-9599
E-mail. [EMAIL PROTECTED]

-----Original Message-----
From: Aaron Balasch [mailto:[EMAIL PROTECTED]]
Sent: February 7, 2001 11:10 AM
To: [EMAIL PROTECTED]
Subject: [geonet]: Importing

I still have a problem that I can't figure out.  I'm trying to import several *.xyz files into databases. Each *.xyz file goes to it's own database. I have created a *.gs file to do this in batch mode. The *.gs file creates the database, imports the file,  does some copying of channels, then closes the database. The import template imports channels x,y,c1,c2,c3. After the script is run, I want to be able to open up the database and have the x,y,c1,c2,c3 channels displayed. When I open up some of the databases the chnnels are displayed, which is what I want. My problem is that when I open up the other databases, no channels are displayed. Now the easy solution would be to go through each database and display the channels manually but this would defat tghe whole purpose of doing the whole thing through a batch process. I've tried several things but still haven't figured  out what tells a database whether a certain channel is displayed or not. Can anyone help or give some insight as to what might be the solotion to this problem?
 
 
Aaron Balasch
Sky Hunter Technologies Inc.
Suite 101, 1725 10th Avenue S.W.
Calgary, Alberta T3C 0K1
Phone: (403)228-2175
Fax: (403)244-7955
email: [EMAIL PROTECTED]

Reply via email to