MI-L MapBasic Text object question

2005-06-20 Thread Canfield, Andrew
To all who may know, Using Mapbasic how do I get the minimum bounding rectangle for just the text of a text object when it has an arrow pointing to something. Using MBR() or using ( ObjectGeography(Lyr.Obj,1), ObjectGeography(Lyr.Obj,2), ObjectGeography(Lyr.Obj,3), and

RE: MI-L MapBasic Buttons

2005-02-21 Thread Canfield, Andrew
In your mapbasic install folders there should be a folder called ICONDEMO. Build that .mbx from the .mb and run it then you can graphically see what all the icons are and their numbers. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, February 21, 2005

RE: MI-L Differences between MapInfo and ArcView.

2005-02-18 Thread Canfield, Andrew
I agree. I have to teach new users here. MapInfo is very intuitive for Windows users. It functions very much like a Windows application. ESRI functions like a Unix application. We have both types of users here and people who are used to Unix seem to pick up ESRI tools faster than those who are

RE: MI-L GeoDatabases

2005-02-18 Thread Canfield, Andrew
I vote for PostgreSql because MySql is really a joke as far as database systems go. I know a lot of people like it but the list of things it doesn't support like triggers ect. could fill a room. It's spatial support is awful too. We tried using it here when we saw that it supported spatial data

RE: MI-L Differences between MapInfo and ArcView.

2005-02-18 Thread Canfield, Andrew
? -Original Message- From: Canfield, Andrew [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 7:39 AM To: 'Flavio Hendry'; Lars V. Nielsen (HVM); MapInfo-L Cc: [EMAIL PROTECTED] Subject: RE: MI-L Differences between MapInfo and ArcView. I agree. I have to teach new users here. MapInfo is very

RE: MI-L Differences between MapInfo and ArcView.

2005-02-17 Thread Canfield, Andrew
To All, I agree MapInfo needs to get on the stick and decide on a geodatbase format for themselves(not Oracle spatial because normal small businesses cannot afford it). Some thoughts I have on differences are: ESRI tools have a steeper learning curve than MapInfo. ESRI seems to assume you used

RE: MI-L Deleting duplicated objects

2005-02-17 Thread Canfield, Andrew
You want Jacques's programs. They can be found here: http://www.paris-pc-gis.com/ppcc/gisprogs.htm The one you need will be either: SKIM.ZIP or SKIMALL13.ZIP depending on what you are doing. -Original Message- From: Bill Thoen [mailto:[EMAIL PROTECTED] Sent: Thursday, February 17, 2005

RE: MI-L Cresta Zones

2005-01-22 Thread Canfield, Andrew
Warren, I just saw your reply and I have sent you an e-mail. Let me know if you don't get it and I'll try and send it from a gmail account or some other account besides my work one. Thanks, Andy -Original Message- From: Canfield, Andrew To: mapinfo-l@lists.directionsmag.com Sent: 1/21

MI-L Cresta Zones

2005-01-21 Thread Canfield, Andrew
Does anyone on the list know the answer to any of the following questions: How much are the Cresta zone data sets for MapInfo? ( It would be for two US states area ) Who do I buy them from? ( I thought it was Europa technologies but I haven't gotten a response from them ) (I tried e-mailing

RE: MI-L Alternative Text Editor to native MapBasic

2005-01-14 Thread Canfield, Andrew
I second Ultraedit. I haven't used the mapbasic interface in years since Bill showed me how to set it up with Ultraedit. I can do my Java, C C++, and mapbasic all from the same editor. You can set up syntax highlighting and basic syntax correction then open up different types of files in

RE: MI-L Dot NET and the Future of MapInfo Applications

2004-12-17 Thread Canfield, Andrew
*Warning this is long* I do not care much for .Net at all but the VS IDE is much easier to use for the developer than MapBasic. If you really want to run cross-platform with .Net then you can use Mono. It works in the same way Java works. Yes, it works on different platforms but native code

RE: MI-L Cracking .NET Assemblies (was Dot NET and the Future of MapInfo Applications)

2004-12-17 Thread Canfield, Andrew
A friend of mine also did a step by step example of how to crack passwords in .Net also: http://www.atrevido.net/blog/PermaLink.aspx?guid=8315fa01-0286-47ce-a20b-fcc 15eb297c3 And also how to replace strong names in assemblies so the program can't tell you cracked it and will still run:

RE: MI-L Dot NET and the Future of MapInfo Applications

2004-12-17 Thread Canfield, Andrew
-Original Message- From: Lars V. Nielsen (GisPro) To: Canfield, Andrew Cc: [EMAIL PROTECTED] Sent: 12/17/2004 1:32 PM Subject: Re: MI-L Dot NET and the Future of MapInfo Applications Hi Andrew, So basically you suggest we all roll over and play dead ;-) No, I recognize and respect the reasoning

MI-L Set multiple object symbols quickly?

2004-06-01 Thread Canfield, Andrew
Is there a quick way to set the symbol for a large selection of objects using MapBasic? Here is my problem: I have a series of tables, in each of these tables I have multiple point object groups, they are grouped by a field called type in my MapBasic I select all from that table where

RE: MI-L Set multiple object symbols quickly?

2004-06-01 Thread Canfield, Andrew
Thanks Bill! That is exactly what I was looking for. -Original Message- From: Bill Thoen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 7:33 AM To: Canfield, Andrew Cc: MapInfo-L Subject: Re: MI-L Set multiple object symbols quickly? Canfield, Andrew wrote: Is there a quick

MI-L MapInfo Automation

2004-05-20 Thread Canfield, Andrew
I have a question for anyone who has done Automating of MapInfo via raw COM or Ole. When you create an instance or connect to an instance of an automatable application on Windows you can use any one of a dozen languages to do it. I have tried this in everything from C++ to Java to VB today and

MI-L Maybe usefull to some ( MapInfo Automation from C++ )

2004-04-29 Thread Canfield, Andrew
I don't know if this will be usefull or not to anyone but I couldn't find any good documentation on integrated mapping with MapInfo from C++ that doesn't use MFC. So I wrote up a small wrapper function that returns a pointer to an instance of MapInfo for doing integrated mapping or just

RE: MI-L What's the best way to get Visual Studio .NET?

2004-02-03 Thread Canfield, Andrew
Uffe, I e-mailed back to Bill only by accident but sharpdevelop conks out when you include the MapInfo GAC's. I contacted MapInfo on it and they contacted the sharpdevelop project heads but as of yet there isn't a resolution. I'm going to try C#Builder next because I can't find anyone who has

RE: MI-L What's the best way to get Visual Studio .NET?

2004-02-03 Thread Canfield, Andrew
Hi all, Ok this morning I downloaded and tried Borland's C#Builder with some of the samples that ship with the King Beta. I just used the built in project conversion that is included with C#Builder when you do a File - Open Project. You have to change a few of the paths on the references

RE: MI-L MapBasic Question

2004-01-28 Thread Canfield, Andrew
It will create an .mbx but you probably have a call or declare to a function it can't find in the current module. It then assumes it's part of a project so it creates an .mbo which is the file extension for a MapBasic Object you can create an .mbx from .mbo's by linking them in one project. It

RE: MI-L The future of MapBasic / MapInfo vs ArcGIS

2003-12-05 Thread Canfield, Andrew
I have dual 1.7 xeons and I have the exact same issue. We run both ArcGIS and MapInfo at our company and you are 100% correct ArcGIS is just dog slow no matter what you do. I have to use data sets of multiple county tax lots and each county has 400,000+ taxlots. Put 12 counties together and go

RE: MI-L MB: SHBrowseForFolder() Constants Definitions?

2003-11-09 Thread Canfield, Andrew
I take it you don't do C or C++ then? For those folks who don't the easy way to find constants is just go to the header file they are in with a text editor and look them up IE the stuff you want is in shlobj.h if you don't have the header files you can get them in either the platform SDK for

RE: MI-L MB: SHBrowseForFolder() Constants Definitions?

2003-11-08 Thread Canfield, Andrew
You know I posted this example on 10/08/2002 to this very list and David Haycraft added some enhancements to it but here it is again(Browse for folder using MapBasic): -code- include mapbasic.def include menu.def include icons.def Define BIF_RETURNONLYFSDIRS

RE: MI-L How to View Table Info in AutoCAD Map after Converted fr om

2003-10-31 Thread Canfield, Andrew
That is true but it is a very limited import you can't manipulate anything on it's way in. You may want to look into how AutoCad Map does that import. It uses FMEobjects. They have relicensed the drivers and it distributes with AutoCad Map. That functionality is not native to map. It was a plugin

RE: MI-L How to View Table Info in AutoCAD Map after Converted fr om

2003-10-25 Thread Canfield, Andrew
Dale is correct. The most common way to convert it, is using FME. There are other ways but speaking from personal experience save yourself the headache and just use FME. Then you just have to know the name of the application in the extended entity data (most commonly called xdata) to retrieve it

RE: MI-L Using MapInfo OLE in C++

2003-10-22 Thread Canfield, Andrew
I'm very interested. Please do post your solution. -Original Message- From: Sam J [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 9:22 AM To: [EMAIL PROTECTED] Subject: Re: MI-L Using MapInfo OLE in C++ Thanks Martin. He suggested an element of a solution. Basicaly, I get

RE: MI-L Recommend a Plotter

2003-10-02 Thread Canfield, Andrew
Out of all the plotters I have ever used from MapInfo Pro hands down my favorite is the HP Design Jet 1055CM by HP. It has all the things I really wanted from earlier plotters but that they didn't have like easy initial paper setup, great color and paper settings, huge memory for jobs, which you

RE: MI-L Layout to *.pdf file

2003-09-25 Thread Canfield, Andrew
Here is what I use it's free and open source: http://sector7g.wurzel6.de/pdfcreator/index_en.htm -Original Message- From: Abbi Mueller [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 11:38 AM To: [EMAIL PROTECTED] Subject: MI-L Layout to *.pdf file Can anyone tell me how

MI-L Addressed streets

2003-05-30 Thread Canfield, Andrew
To all who may know. What is the absolute most up to date and accurate addressed street base in MapInfo format? I do not care about price I just really need to know what is the best data out there. Thanks, Andy

RE: MI-L Wish List

2003-03-12 Thread Canfield, Andrew
Yes, I noticed the same thing. I was going to use that wish list to write add-ins to MapInfo in MapBasic. I like to have projects in MapBasic so it stays fresh in my mind but it seemed that no one was using the wish list so I dropped the idea. If people do start using it again I will make some

RE: MI-L Geocoding Scrubber!!!

2003-02-05 Thread Canfield, Andrew
I deal with this issue every day. Unfortunetly my solution will only work in the US and Canada. There is an AI company called SemaphoreCorp that makes a product called ZP4 it does everything from common spelling mistakes to phoenetic string building. A lot of great programming went into the

RE: MI-L apply color value

2003-02-04 Thread Canfield, Andrew
This is something I did when I first started using MapBasic as a development language. It's pretty bad but it will give you an idea of how you can shade based on values in a column. Sub ShadeByStatus Dim Norm_fillstyle As Brush Dim InCons_fillstyle As Brush Dim Video_fillstyle As Brush Dim

RE: MI-L Node coordinate extraction

2003-02-04 Thread Canfield, Andrew
This works for lines. I have never tried it on poly lines so I'm not sure if it works on them or not. Obviously make sure your variables are correctly declared and set first. stXcoord = ObjectGeography(myLine,OBJ_GEO_LINEBEGX) stYcoord = ObjectGeography(myLine,OBJ_GEO_LINEBEGY) ndXcoord =

RE: MI-L web based mapping

2003-02-04 Thread Canfield, Andrew
Ben here is what I use to when I'm needing SVG info. I do it Acad to SVG but MapInfo should be a lot easier as there are no blocks to deal with. http://www.w3.org/TR/SVG/intro.html -Original Message- From: Ben Crane [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 2:02 AM To:

MI-L Command line compile instructions

2003-01-23 Thread Canfield, Andrew
Sorry to be posting this again but last night I was looking for a post in which someone had mentioned that on their web site they had instructions for setting up a text editor to link and compile Borland C++ files. I haven't been able to find that post or the web site. If that person is still

RE: MI-L Command line compile instructions

2003-01-23 Thread Canfield, Andrew
) ElseIf dblX = 0 AND dblY = 0 Then AngleOfPt = 1004 End If End Function -Original Message- From: B. Thoen [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 6:22 AM To: Canfield, Andrew Cc: [EMAIL PROTECTED] Subject: Re: MI-L Command line compile instructions

RE: MI-L MapBasic Question

2003-01-10 Thread Canfield, Andrew
Go with a number of runs limit rather than a date. Release the app and with 50 trial uses. That way if they install it and forget about it until after the 30 days they can still try your program. Write the number of uses to a file in the registry each time using the API (you will have to convert

RE: MI-L Application background color

2003-01-02 Thread Canfield, Andrew
Remember you asked for this. Don't say you weren't warned. This will change the MDI background color of all MDI applications on your system, So you better hope this is what your user wants. I have included constants to change a bunch of other settings colors too like the caption and what not. I am

RE: MI-L Lcase/Ucase code snippet needed - sum

2002-12-18 Thread Canfield, Andrew
try lowerstrIn = left(OriginalString,1) upperstrIn = ucase(lowerstrIn) newstring = replace(YourString,lowerstrIn,upperstrIn,1,1,0) that should replace the first letter with an upper case version of itself -Original Message- From: Kornelsen, Gerald [mailto:[EMAIL PROTECTED]] Sent:

RE: MI-L E00 Conversion

2002-12-18 Thread Canfield, Andrew
I have run into this same problem. If you use FME directly to translate them you run into the same problem. The problem is with FME. I have a way around it but it's extremely time consuming. So if you get a solution to this and it's not posted to the list would you please copy the solution to me.

MI-L Three MapBasic questions

2002-12-05 Thread Canfield, Andrew
First is there a way to make an argument to a function Optional like in VB where you say something like Function MyTestFunct( valueOne as String, Optional ValueTwo as Boolean) ? Second is there any way to Color buttons on a dialog so they aren't the standard grey? Three does MapBasic have a

RE: MI-L Three MapBasic questions

2002-12-05 Thread Canfield, Andrew
but I was going to redraw the dialog or a button in the color specified so they could see it visually also. Thanks for the quick response, Andy -Original Message- From: B. Thoen [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 8:11 AM To: Canfield, Andrew Cc: '[EMAIL PROTECTED

RE: MI-L Three MapBasic questions

2002-12-05 Thread Canfield, Andrew
That's a good idea. I will try that. Thanks Lars. Andy -Original Message- From: Lars V. Nielsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 7:57 AM To: Canfield, Andrew Cc: [EMAIL PROTECTED] Subject: Re: MI-L Three MapBasic questions Hi Andrew, Instead of a colored

MI-L A question of direction and route?

2002-11-22 Thread Canfield, Andrew
Has anyone created a tool for MapInfo Pro that will allow you to select a start point and an end point and find the shortest path between them on a chosen table like a streets table or a highways table? Then highlight the route and show the the distance in the current Map Units?

MI-L Is it possible? A node question

2002-11-21 Thread Canfield, Andrew
Is it possible to resize the nodes in a map? I have someone with poor eye site and they would like larger nodes in polygons on their map. Is there a way to do this? - List hosting provided by Directions Magazine |

RE: MI-L MapBasic DDE

2002-11-20 Thread Canfield, Andrew
Does MapBasic support OLE? So you could go the other direction? Is the standard VB Dim ExcelApp as Object Set ExcelApp = Excel.Application type of structure supported in the reverse direction so that you could control Excel from within MapInfo rather than MapInfo from Excel? -Original

RE: MI-L MapBasic DDE

2002-11-20 Thread Canfield, Andrew
Ok Thanks Paul. That cleared up my last question I suppose C++ it is. I won't do that until I am 100% sure my company isn't upgrading. C++ is definitely not my favorite enviroment. -Original Message- From: CRISP, Paul -Syntegra UK [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20,

RE: MI-L MapBasic Alias Array question

2002-11-19 Thread Canfield, Andrew
) strRunCommand = strRunCommand Into qryResultsTable 'Close the dialog Dialog Remove 'Run the command creating the new qryResults table Run Command strRunCommand end code'' -Original Message- From: Canfield, Andrew Sent: Monday, November 18, 2002

MI-L MapBasic Alias Array question

2002-11-18 Thread Canfield, Andrew
I have an array of alias variables each value in the array is a column name in a table. I need to do a proportion overlap query and also include the columns in that array which the user has selected from a popup control of the column names. How do I do it? For example: if aliasColumnList

MI-L Query question

2002-11-14 Thread Canfield, Andrew
I have two tables Table one is only a browser table it has no graphical data. Table two has all the same column names but also has graphical data. One polygon for each record. I have a primary key that is an ID number in both tables. How do I run a query that will give me all the records in my

RE: MI-L Updating region fills from another table

2002-10-31 Thread Canfield, Andrew
Julian, I don't know if it will help or not but I have written an .mbx which allows you to select an object and copy it's fill pattern and line style to multiple objects across tables. It simply a toolbar with two buttons on it you select the object you want to copy from and hit C on the

RE: MI-L MBX help

2002-10-22 Thread Canfield, Andrew
Are you looking to set the zoom level for a selection of tables within your Map? I don't have one that does it right off the bat but it should be easy to write up if someone doesn't have one readily available. E-mail me if someone doesn't have a ready made one and let me know exactly what you are

RE: MI-L FileOpenDlg Question

2002-10-15 Thread Canfield, Andrew
You could do it like this '---code include mapbasic.def Declare Sub Main Sub Main Dim strFile As String Dim origTableName As String Dim newFileName As String strFile = FileOpenDlg(,,TAB,Open TAble) Open Table strFile origTableName =

RE: MI-L Browsing for folders from MapBasic using Shell32.dll

2002-10-14 Thread Canfield, Andrew
I just tested your code on Win2K and it works great there also. Taking out the lstrcat() function allowed the custom prompt to work on my NT4 machines here also. Thanks David. -Original Message- From: David M Haycraft [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 6:22 AM To:

MI-L Browse for folder from MapBasic using Shell32.dll

2002-10-08 Thread Canfield, Andrew
This is something I needed but I thought it might be of use to others out there. It is an example of how to use the Shell32.dll SHBrowseForFolder function to return a path to a folder from MapBasic. Enjoy -code- include mapbasic.def include menu.def

RE: MI-L New Ultraedit features in version 9.20

2002-10-04 Thread Canfield, Andrew
Bill Thoen was the one who showed me how to use Ultra Edit as a compiler. I use it exclusively now. Here are the instructions per Bill's original e-mail to me. Sure. That's how I use it with MapBasic to MBX. Under the Advanced menu, choose Tool Configuration. First, create a little compile

RE: MI-L FILL PATTERNS EDITOR TOOL

2002-09-25 Thread Canfield, Andrew
I have a real quick .mb that I wrote to copy paste fill paterns from one polygon to another or one polygon to multiple. Basically it works like this. It has a toolbar with the letters C one one button and the letter P on another button. Select the polygon with the fill pattern you want then click

RE: MI-L calling mapbasic from C++

2002-09-23 Thread Canfield, Andrew
The FindWindow function in your user32 library will return the current instance of MapInfo. It works by caption so when you first run your create objects or a shell MapInfo you know what your window caption will be so capture the handle then and it remains the same throughout that session. The

MI-L Shelling Applications from MB

2002-08-02 Thread Canfield, Andrew
A few days ago I posted a way to shell any application from within MB. I got some positive response and Jaques was kind enough to elaborate on it and post it on his outstanding web site. Some people said yes that is great now I can Shell an application but how do I close it. This is a bit more

MI-L Shell Excel from Within MapInfo using MapBasic

2002-07-30 Thread Canfield, Andrew
This may be old news to you guys or not, however I'll post it because it took me so long to figure this out. Here is how you Start a windows program from MapInfo via Mapbasic. I need it to initiate DDE conversations with Excel therefore Excel must be running. I don't like starting excel then

MI-L Snapping from multiple tables

2002-07-02 Thread Canfield, Andrew
I have two tables in MapInfo 6.0 both are polylines only. I want to snap all the nodes in one table to all the nodes in the other if they are within a certain distance. Has anyone written an MBX like this? If so can you send me the code to do it. I have a MapBasic so I can write it for my needs

MI-L MapMarker API call

2002-06-28 Thread Canfield, Andrew
Jacques of Paris PC Consult has been kind enough to post an application I have created for MapInfo's MapMarker on his web site www.paris-pc-gis.com http://www.paris-pc-gis.com This application is an adeptation of the open source code that comes with MapMarker. It will take a batch of

MI-L Querying massive record sets against a boundary

2002-06-11 Thread Canfield, Andrew
I frequently have tables of over 100,000 addresses which have been geocoded. When I run a query to find what boundary they lie in Mapinfo quits responding unless I trim the table down to less than 12,000 addresses. Is there a way around this? I really need to be able run 140,000 + addresses at