API Help
EPLAN API / API Reference / Interactions / XGedIaFormatText
In This Topic
    XGedIaFormatText
    In This Topic
    sets text format can be offered for configurable toolbar
    Parameter Description

    language

    language (AllLanguagesColumn, AllLanguagesRow, OneLanguageVariable, de_DE, en_US ...)
    

    height

    text height (Value in mm or In or "-16002" for "from layer")
    

    color

    text color (0=black, 1=red, 2=yellow, 3=green, 4=cyan, 5=blue, 6=magenta, 7=black,
                                     8=white, 9=light gray, 252=dark gray, 253=gray, -16002=from layer;
                         The user can set other values in the color selection; possible values are from 0 to 256.
    

    justification

    adjustment (1=kTopLeft, 2=kTopCenter, 3=kTopRight, 4=kMiddleLeft, 5=kMiddleCenter,
                                             6=kMiddleRight, 7=kBottomLeft, 8=kBottomCenter, 9 = kBottomRight,
                                             10=kBaseLineLeft, 11=kBaseLineCenter, 12=kBaseLineRight,
                                             13=kSpecialLeft (Special Attachment-Types for PathTexts in DIN- and USA-Project),
                                             14=kSpecialCenter (should not be used in new projects, just to be compatible to E5),
                                             15=kSpecialRight, 16=kJicSpecialLeft (Special Attachment-Types for PathTexts in JIC-Project),
                                             17=kJicSpecialCenter(should not be used in new projects, just to be compatible to E5),
                                             18 = kJicSpecialRight)
    

    angle

    angle to the X-axis in ° (0°,45°, 90°, 135°, 180°, -45°, -90°, -135°)
    

    font

    text font (0=font 1 of company settings, 1=font 2 of company settings, ..., 9=font 10 of company settings)
    

    visible

    text visibility (0=invisible, 1=visible, 2=from layer)
    

    bold

    text accentuation (0=normal, 1=bold)
    

    italic

    text accentuation (0=normal, 1=italic)
    

    underline

    text accentuation (0=normal, 1=underlined)
    

    showtextbox

    Use Text box? (0=no text box, 1=rectangular text box, 2=elliptic text box, 3=from layer)
    

    setframeactive

    Frame active? (0=should not be active, 1=should be active)
    

    showframe

    Frame shown? (0=no alignment box, 1=show alignment box)
    

    framewidth

    frame width in mm or In
    

    frameheight

    frame height in mm or In
    

    adjustframe

    Adjust Frame? (1 = do not fit in, 16 = Text: Width fixed - never word-wrap, 32 = Text: Height fixed - never word-wrap,
                                                                                            64 = Text: word-wrap,
                                              80 = Text: Width fixed - word-wrap,
                                                                                            128 = Text: remove line breaks,
                                              144 = Text: Width fixed - never word-wrap - remove line breaks,
                                              208 = Text: Width fixed - word-wrap - remove line breaks)
    

    sizefromsettings

    Frame size from project settings used? (0=should not be actived, 1=should be active)
    

    leaderline

    activate leader line (0=should not be active, 1=should be active)
    

    donttranslate

    don't translate automatically (0=text is translated, 1=text is not automatically translated)
    

    linespacing

    row spacing in number of lines
    

    layer

    layer name (example: "EPLAN501")
    

    Remarks
     In properties which should be not changed, leave simply question mark ("?").
     
    
     The settings are the same as in the characteristic text dialog.
     
    

    Example
      XGedStartInteractionAction /Name:XGedIaFormatText /height:3,5 /color:? /justification:? /angle:-90 /font:2 /visible:? /bold:? /italic:? /underline:? /showtextbox:? /setframeactive:1 /showframe:1 /framewidth:20 /frameheight:10 /adjustframe:208