The method I use is to recreate the object in memory using all the attributes of the object you're querying, at its shifted position.
oText = CreateText( window_id , x , y , text , angle , anchor , offset ) and otextMBR = mbr (oText) The other reason to do this (recreate oText) is if you need the rectangle of a rotated text object. The method here is to get the MBR of the unrotated object and then rotate the MBR about the anchor point. Regards, Phil Waight. -----Original Message----- From: Canfield, Andrew [mailto:[EMAIL PROTECTED] Sent: June 20, 2005 17:26 To: [email protected] Subject: MI-L MapBasic Text object question 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 ObjectGeography(Lyr.Obj,4) to create a rectangle ) both yield the same thing. They give me the MBR for the entire entity including the arrow. I need the MBR of just the text. Does anyone know how I can accomplish this? Thank you, Andy
