PDA

View Full Version : Variable for selecting center of line?


bdining
12-03-2003, 01:00 PM
I would like to create a varible that gets the center point of a selected line with in Annotator?

jkramer
12-03-2003, 11:29 PM
Hi,

you can determine the center of a line by using the function
SD-AM-INQ-SPECIFIC-GEO-PROPS
first.

This will give you the start and end point of the line, so that you can calculate the center point.
See ....../help/Common/documentation/integration_kit/reference/annotation/geometry_inquiries.html and look for SD-AM-INQ-SPECIFIC-GEO-PROPS and SD-AM-LINE-STRUCT.

Also note that you can "split" a gpnt2d to x and y by gpnt2d_x and gpnt2d_y. This will make it easy to calculate the center. (see ....help/Common/documentation/integration_kit/reference/util_vec.html)

Regards,
Jaap

bdining
12-04-2003, 06:26 AM
Hello,

Currently that is the way I have been calculating the center.
I was hoping to see if there was away to get the info through applying a catch option within the variable using
:additional-token-string or something else.

Thank You
Bill