Hey Greg
 
Thanks a lot.  I get the gist of it and have been trying it out in the
MI MB window, but as yet I've had no results.  A different slant on
Tony's soln.  Will keep at it.
 
Cheers]
 
Terry

________________________________

From: Driver, Greg 9434 [mailto:[EMAIL PROTECTED] 
Sent: 27 September 2005 16:01
To: Terry McDonnell
Subject: RE: MI-L Too difficult for any of you :-) 10 Minute WalkDiagram



Terry, 

Me again!  Someone asked a question a few days back about creating a
doughnut area based on a 10m external/internal buffer of a selected
polygon.  I came up with this code to do it:

dim objBuffer1 as object 
dim objBuffer2 as object 
dim objDonut as object 

objBuffer1 = buffer(selection.obj, 12, 10, "m") 
objBuffer2 = buffer(selection.obj, 12, -10, "m") 

objDonut = erase(objBuffer1, objBuffer2) 

insert into windowinfo(frontwindow(), 10) (obj) values (objDonut) 

I did this via the MapBasic window in MI but I'm sure you could change
it to come up with some code for your program? 


Greg Driver 

Reply via email to