AVEVA Community
AVEVA Community
  • Site
  • User
  • Site
  • Search
  • User
Modules
  • AVEVA World
  • PDMS/E3D Forum
  • Modules
  • Cancel
Modules
Iso Draft Text Alignment
  • Forums
  • Resources
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Replies 10 replies
  • Subscribers 3 subscribers
  • Views 88 views
  • Users 0 members are here
Options
  • Share
  • More
  • Cancel
Related

Text Alignment

Aaron Tan
Aaron Tan over 12 years ago
 
  • Sign in to reply
  • Cancel
  • Admin
    Admin over 12 years ago
    it is possible to set some relations to other text
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Aaron Tan
    Aaron Tan over 12 years ago
    Hey all,

    so under the directory "T:\Projects\projectsv12\APACHE\VARANUS\variso\std" i have an isometric option file. (a few actually).
    is there a way to justify and/or align the text to middle and centre?
    coz when you position an attribute text it has only the pos and the character height:
    TextPosition :PROJECT_TITLE X 400mm Y 27mm CharHeight 3.5mm

    In draft you would put:
    JUST Centre
    ALIGN HBODY

    Any thoughts?
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Admin
    Admin over 12 years ago
    meanns previously defined
    you can set relations to their coordinates
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Aaron Tan
    Aaron Tan over 12 years ago
    other texts meaning not those ones?
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Aaron Tan
    Aaron Tan over 12 years ago
    but then wouldnt the text be left justified anyway?
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • marisa deleon
    marisa deleon over 10 years ago
    did anybody figure anything out about justification?  i too am trying to center justify instrument names in their bubbles and center justify my iso title text.  thanks
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • marisa deleon
    marisa deleon over 10 years ago
    i'm wondering if we can put a pml expression in the iso plotfile forms (for the Xposition)?  i am trying to solve my text justification problem by using a number based on the LEN(NAME) but am having trouble with syntax.  has anybody done this?
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • marisa deleon
    marisa deleon over 10 years ago
    Nevermind.  i figured it out.  Easy fix in the option file, as opposed to using the form!  duh!  (just learning...)
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • PaulCobb5735
    PaulCobb5735 over 9 years ago
    I am just learning as well and would like to know your fix in the option file.  Mine currently reads . . .

    Instname  NAME with balloon size 6

    Thank you.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Lev
    Lev over 2 years ago in reply to Aaron Tan

    Add next function (with name aligniso.pmlfnc) into your pmllib:

    define function !!aligniso (!inputtext is string, !x is real, !y is real, !charheig is real, !alignparam is string)
        !align = !alignparam.upcase()
        !z = !charheig * 0.7
        !l = !inputtext.length()
        if !align eq |R| then
            !x1 = !x -!l * !z
        elseif !align eq |C| then
            !x1 = !x - ( !l / 2 ) * !z
        else
            !x1 = !x
        endif
        !output = |TextPosition '$!inputtext' X $!x1 Y $!y charheight $!charheig|
       $!output
    endfunction

    In Option file use !!aligniso ('Project Title', 400,27,3.5, 'r'), instead of TextPosition ':PROJECT_TITLE' X 400mm Y 27mm CharHeight 3.5mm

    'r' - for right just

    'c' - for center just

    and '' - for left just

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel