Hi Esteban,
There's a tool that can be useful for doing this. Open the tools dialog
box (Tools->Tool Manager) find the "Create Line by Length" item and
check the checkbox "Loaded". When it loads, it adds a pencil icon to the
tools toolbar.
Once you have selected the object in question, click at the pencil icon
and a dialog will appear, then specify the parameters you want and a
line will be created.
If you need to do this programatically, then you could use the source
code provided with the MapBasic installation. The program is located at
the [mapbasic_directory]\SAMPLES\MAPBASIC\COGOLINE\COGOLINE.MB. The
point here is in the GetEndpoint function:
Declare Sub GetEndpoint(ByVal x1 As Float,
ByVal y1 As Float,
ByVal angle As Float,
ByVal length As Float,
ByVal iterations As Smallint,
x2 As Float, y2 As Float)
As you can see, you specify the source coordinates, distance and angle
and it calculates the values, returned by reference in the x2 and y2
variables.
Hope this helps,
Jes�s Orozco
Olot (Girona) - Spain
S. Esteban Rodr�guez escribi�:
hi
someone have a *.mb sample source code of as add nodes at a specified
distance to selection.obj???
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 15493
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 15502