How can I obtain the exact coordinates of FPT for an STRA ?

 
  • Hi,

    In a macro I want to get the exact value of the FPT of STRA in order to attach some text and symbol.

    I do that with the following code:

    VAR !POSDESC FPT
    VAR !POSDESCR SPLIT |$!POSDESC|
    ...
    ...

    But I do not obtain the exact value and the text and symbol are not placed exactly where I want because:

    Q FPT give me:
    Fpt X 257mm Y 559mm

    and the real value of FPT is actually:
    X 256.593m Y 558.539mm (checked with the Edit ---> Move Primitive/Note to --> XY)

    How can I get the exact value of the FPT in my macro ??

    Thanks for your help
  • [QUOTE=MEAMRIULS;92960]Hi,


    Q FPT give me:
    Fpt X 257mm Y 559mm

    and the real value of FPT is actually:
    X 256.593m Y 558.539mm (checked with the Edit ---> Move Primitive/Note to --> XY)

    How can I get the exact value of the FPT in my macro ??

    Thanks for your help

    Hi you should use this
    !FPTX = !!ce.Ptfarray[1].Xyposition.east
    !FPTY = !!ce.Ptfarray[1].Xyposition.north

    Q VAR !FPTX
    Q VAR !FPTY


    for TPT use second array which is -> Ptfarray[2]