-
Application crash when calling App_LoadControl_EMAP
Hi, I'm developping a stand alone application in C++. It uses the "C" api. Calls to "App_LoadControl_EMAP" fail. In release mode, the application simply crashes. In debug mode, VS2015 tells me that my application "has triggered a breakpoint." somewhere in geoengine.core.dll. I tried compiling geomapxprt from the samples…
-
Question about GX Developer/cpp/lib
Hello, My environment: GX Developer9.1+Visual Studio 2015+Oasis montaj8.4 I want to build a dll program,and use gx to call the dll to create a database in oasis. I set the vs->program properties->VC++ Directories->Include Directories->gx developer\cpp\include; vs->program properties->VC++ Directories->Library…
-
How to edit / delete items within a group?
Hi all, I want to know if there is a way to iterate through the content of a group within a view of a map file. I would like to be able to find specific elements and get information about them (type of element, position / extent, text value etc) and possibly change some properties. I see functions to create entities but…
-
compiling proprietary c code into a dll
Hello, in the gx developer course manual module4 lesson4.1,compiling proprietary c code into a dll, I got a problem: I wanted to use gx to call wrapper.dll to call myfilter.dll, when I was coding the wrapper.c,I included all the head files ,but the define of micro "CDLLFUNC"couldn't be found in any files,so what can i do…
-
C++ interface improvements
Hi all, I decided to convert my applications that were using my own C++ wrapper around the C interface to the official GX C++ interface. I figured that it would be fairly simple since both implementation had the same concepts with smart pointers. It was a bit tedious to do but in the end it was worth it since the official…
-
VV/VA Memory
Hi Guys I am not sure if it is something i am going incorrect but i have a .net GX that loads a large Array Channel into a VA, i then get the FULLVV and work on that. My issue is that every time i call the hDB.GetChanVA function ie. for each line, the memory usage continues to go up. i have tried creating new VA for each…
-
XTool Reacting to GDB
Hi Guys I have a case where i would like to make a Xtool type application. but was wondering if there is a way to get it to react to the user changing fid(rows) in the GDB. If not does any one have any ideas on how i could make a gx that could stay permanently open in geosoft , in order to display data in a custom format…
-
Error getting Gx context
I am still working through some basics so apologies for the basic question. I have been able to open and read GDB files no problem but have become stuck opening and reading grids. Typing the following lines into python I get the message below: import geosoft.gxpy.grd as grd ctx = geosoft.gxpy.grd.GXgrd() File…
-
External Tool dialog is blank
Hi, In Montaj, when I start a gx, the External Tool dialog pops up but it is blank. In version 8.x the dialog was displayed properly. It seems to have broken in version 9.1. I upgraded to 9.1.1 but it didn't fix the issue. I can execute the gx without problem but it's annoying to have this window pop up every time. Thanks
-
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…