Hi,
I'm currently developing a program with VB6 using the MX SDK. Thr program is required to perform a lot of normal calculations from points onto a master string.
I am using the 'MFWPSMcNormal' method from the MFWSystemBuild object to do the normal calcs (i.e. obtaining chainages on a master string from a point). When I compile the .exe the program works perfectly from my PC.
When I try to run it from another PC, the MFWPSMcNormal method does not appear to work. On testing I found that the lReturn value was returning -1 (i.e. an error), whereas on my computer the lReturn value was 1 (successful normal)
The testing was done using an identical string model on both machines and I've ensured the MossSysBuild.dll is in the correct location on the other PC.
Does anybody have an idea as to what I am doing wrong?
Thanks in advance
AM
Andrew,
I had trouble with this routine when building the RTA's CTC Report. In situations where more than one normal is possible only the first is returned and no indication is given that other normals exist. I end up using a 996 report and trolling through the output the get the correct result. The code from my project is attached for your reference.
I would suggest looking at the curve fitting values as this is usually the cause of most heartache with normals.
Regards Phil