Thanks, Peter. I think that is beyond me at this time. Hopefully I can get to the stage of programming such as this, but not for a while.
Pam Pam Lardear Run River Enterprises http://www.runriver.net 315-559-0526 "Helping you find your Way" -----Original Message----- From: Peter H. Van Demark [mailto:[EMAIL PROTECTED] Sent: Thursday, March 03, 2005 12:14 PM To: [email protected] Subject: RE: [Maptitude] copy area? Pam: >No, not a freehand shape. It's a area geographic file, so each building >is a record in a dataview. Any way to duplicate that? Here are some thoughts. You would need to do some GISDK programming. Once you have created an area feature, and have its ID, you can get the coordinates that describe it by calling GetArea(). You can create a new area by calling AddArea(). The trick is to come up with the adjusted coordinates for the new area. You could have a toolbox with three tools: - Get Area: click on an area to get it's ID (with LocateNearestRecord() and RecordHandleToID()) and store its coordinates (with GetArea()) and centroid (with GetCentroid()) - Copy Area: click at the centroid for the new area, then create a new set of coordinates that, for the longitude and latitude of each, is: new coord = old coord + (new centroid - old centroid) Add the copy of the area with AddArea(). - Move Area: like Copy Area, but get the coordinates and centroid for the copied area and create an updated set of coordinates based on the new centroid. Call DeleteArea() and then call AddArea() with the same ID and the updated set of coordinates. This would let you adjust the position of the area you just copied. An alternative, alluded to by Louis, would be to create freehand items; you could duplicate them and drag them to new locations, and then do some GISDK programming to get their coordinates and add them as area features. The Click Bands Toolbox in the Marketing menu uses this ability to go between freehand items and map features. Peter ---------------------------------------------------------------- Peter Van Demark Director of GIS Products and Training Phone: 617-527-4700 Caliper Corporation Fax: 617-527-5113 1172 Beacon Street E-mail: [EMAIL PROTECTED] Newton MA 02461-9926 Web site: http://www.caliper.com Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide! http://us.click.yahoo.com/EA3HyD/3MnJAA/79vVAA/C5grlB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Maptitude/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
