-
Can't get geodist.dll to load
I have installed Gx Developer 9.1 and Winpython 3.5.2 and have carefully gone through (and repeated) the installation instructions. When trying to validate the install I get the message shown in the attached image. I have carefully checked path and environment variables. I have put the geosoft directory in the…
-
Finding the world position of the first point of a grid
Hi, I have a grid .grd and .gi files. The coordinate system is UTM. How can i compute the UTM location of the first point of the grid? In the following example, i fetched the following properties: SAMPLE GRID GXIPJ::get_orientation_info() - plane origin (x; y; z) = (0; 6.678.350; 0) - azimuth = 90 - swing = 0…
-
Writing a GX/python script to edit base layers within multiple maps
Hi there, I want to create either a GX or a python script that will load in a bunch of .map files and then edit a specific base layer. More specifically, if I have several maps with the same base layer, where that layer is just a text box with a string in it - I want to edit that text box without having to open each map…
-
Licence for Create_CPG
Hi, I've been testing my gxNet code for users who do not have an Oasis licence and encountered a problem with the call to create a pager. The relevant line in the code looks like this: CPG PGSpec = CPG.Create(iNy, iNx, GS_TYPESConstant.GS_FLOAT); The (hopefully correctly transcribed) error message generated is: Unable to…
-
Read/write Meta information in a gdb using gxnet
Hi, I'm having difficulty in creating and writing information in the Metadata for a gdb. I followed the process used in the FileToandFromGDB.cs, but it doesn't work for me. The relevant (elided) code section is this: hMETA = CMETA.Create(); hDB.GetMETA(hMETA); var mcData = hMETA.ResolveUMN("CLASS:/Geosoft/Data"); var…
-
question about the GeosoftTemplates.vsi install.
My environment: visual studio 2015+gx developer9.1 my question:when I install the GeosoftTemplates.vsi,I got a problem like this: Installation stopped because the directory for template installation did not exist. Please run Visual Studio on this computer to create the template directories. and my directory for template is…
-
GX Developer 9.1 released
We are very pleased to announce the release of GX Developer 9.1, which completes GX Developer support for the 64-bit Oasis montaj 9 platform. This is an important step forward for both development and research geoscientists who depend on Geosoft's stable, innovative, and advancing platform for geoscience data processing…
-
Fetch grid projection info
Greetings, Is there an example showing how to fetch projection info (GXIPJ) given a grid object (GXIMG) and a context (GXContext)? I tried the following but it crashes when calling get_3d_view() C++ code GXContextPtr ctx … GXIMGPtr grid … … GXIPJPtr proj_info = GXIPJ::create(ctx); if(proj_info) { grid->get_ipj(proj_info);…
-
Basic setup for developing GX in .net
Hi, A few questions as I am trying to get going developing in .net: - Is there an updated documentation? I have a GXDeveloperHelp.chm file that's pretty outdated. - How do I set up the templates to be able to use them (SimpleGX, AdvancedGX, WizardGX)? Do I need to copy the files somewhere? Thanks, Emmanuel
-
Problem running NewGDB dll
Thanks to the posts from Sergio (http://dev.crazyrobot.net/) I have managed to build and run a simple HelloWorld dll from Oasis. I am running Oasis Version 8.2, GxDeveloper 8.4 and VS2015. However I've fallen at the next step of running the NewGDB dll from the gxnet src directory. The build of the dll runs fine with no…
-
Users with no administrator rights
How can we install (deploy) Oasis v.9 unattended. Our users has no admin rights so they can't update them self.
-
Hi all, I hope someone may be able to help me with the question and the problem below.
I am currently developing a free-standing app which is called out of a Geosoft GX. It opens its own windows and dialogs etc. I am using Oasis Montaj 8.4 (yes, I know it’s not the latest!). What’s supposed to happen is that the GX (fired from the usual Montaj framework) cranks up the app and passes the name of the current…
-
Gx Developer V9 beta C# Form designer
Hi Guy Quick question i have got all my C# Gx's running smoothly using the new GX9 beta, the only issue i seem to have is what i create and new UI I get the Following errors. The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in…
-
Large GDB, Long VV
Hi Guys I have Gx that converts a binary data file to a GDB. It works fine until i try making a VV longer then 268435456 (2^28) as soon as i get larger this this i get and exception : Error Seeking File: At Offset (-XXXXXXX) from origin (0) an attempt was made to mode the pointer before the beginning of the file. The Value…
-
Get Project Path
A few years ago, Marc Pelletier helped me by writing a GX that grabbed the project location, wrote a .bat file that would set an environment variable which could be read from a .GS or a Python script. The solution won't work anymore and I'm wondering if anyone has a suggestion for how to get the Geosoft Project path to a…
-
GX Developer 9.0 BETA - AVAILABLE
Hello, We are happy to announce the release of GX Developer 9.0. This is a BETA release intended to support developers that link stand-alone programs and external DLL's with the GX Developer API. Oasis montaj 9.0 is a 64-bit application and will only work with 64-bit DLLs. Any GX programs that use external DLLs AND need to…
-
User Menus in OM V9
Where do we now put the .omn file for a user menu in Oasis Montaj 9? The help file simply says "in the Geosoft user\omn folder", however this does not work. Neither does placing it in "Geosoft\Oasis Montaj\user\omn". I have tried several locations with no success (the user folders never appear in the "Manage Menus" window).
-
Accessing date and string channels with python
Hello, I'm using python to pull info from a gdb. I'm using the chanadd.py as an example and am able to use vv.get_data_np to get float or integers channels, but I'm not sure how to get a string channel. I set the datatype using numpy to a string, with datatype=np.str_ but when I run the command channel_array =…
-
Creating a new database
Hi again, I am trying to create a new database and fill it in a C# dll. Essentially I am reading in some data from one database (thanks for the help from my last post by the way, it was very useful!), doing some processing on it, and now I am attempting to write it out to a new database. I have created the new database,…
-
Accessing data in a database
I am building a C# dll, and currently I have got myself to the point where I can load it into Oasis Montaj, and do various little things, however I am having trouble figuring out the best method to get at the data inside of a database. Essentially, I want to access the loaded database to get the x, y, and measurement…
-
Binding error
Hello, I am modifying chanadd.cs to read a grid and am running into a dll issue. Compilation goes fine, but I get the following runtime error: Error: Unable to bind the "?iNCols_PG@@YAJPAUh_gxx@@PBJ@Z" wrapper function. The DLL may not be present or a license may be missing.The thread 0x3064 has exited with code 0 (0x0).…
-
Compiling C# samples
Hello, I am trying to compile the example code (chanadd, OMScript) in Visual Studio 2015 but get the following error: Source file 'C:\Program Files (x86)\Geosoft\GX Developer\gxnet\examples\OMScript\..\..\..\..\..\..\build\buildinfo\deskversion.assembly.cs' could not be found. Thanks, Manu
-
Problem running c# samples
Hi, Have installed GX developer 8.4. Have tried numerous samples and simple commands but continually receive the following error: “Class handle has been previously deleted”. The same error was received when using GX developer 8.5. Have tried referencing dll’s in bin folder as well as in Redist folder. Visual Studio 2013…
-
Running Geosoft library functions in parallel using GNU pthreads
Hi everyone, I am trying to run a Geosoft library function (NLFilt_VVU) in a dll using threads (GNU pthreads). The dll is called from a stand-alone application. Basically it is working. However, many times the returned data is messed up and sometimes the calling application crashes. So there must be a problem with the…
-
GX To run a Python script from Oasis montaj
I have had some interest in this simple GX, which will run a Python script from a running Oasis montaj: Python.zip v1.1 If you are a Python developer, check out the Python documentation in the GX Developer Part 3: Stand-alone programs (HERE). If you have any questions, please ask them on this forum. The Geosoft Python API…