AVEVA Community
AVEVA Community
  • Site
  • User
  • Site
  • Search
  • User
Modules
  • AVEVA World
  • PDMS/E3D Forum
  • Modules
  • Cancel
Modules
Draft Module Label - Attach to
  • Forums
  • Resources
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Replies 11 replies
  • Subscribers 5 subscribers
  • Views 44 views
  • Users 0 members are here
Options
  • Share
  • More
  • Cancel
Related

Label - Attach to

Francois Rosillo
Francois Rosillo over 10 years ago
 
  • Sign in to reply
  • Cancel
  • Francois Rosillo
    Francois Rosillo over 10 years ago
    Hi,

    I have a label intended to indicate TOS.
    How can I set up this label so that it always attach directly to TOS without doing it manually every time I place a new label?

    Is that possible ?

    Thanks.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Han_BFY
    Han_BFY over 10 years ago
    1. put in library and set all setting as you need..
    2. create PML to handle that routine.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Francois Rosillo
    Francois Rosillo over 10 years ago
    Thanks Han BFY;
    I have some PML basis but am new at it and have no idea of how I could handle that. Do I have to modify some existing macro? create a new one?
    Any idea is welcome

    Regards,
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Han_BFY
    Han_BFY over 10 years ago
    Its something like this (I assume you know how to call method)

    define method .glabtxt()
    NEW GLAB
    Justification Left      $*justification of glab
    Adegrees 0             $*orientation of glab
    Lframe false            $* frame on/off
    Cheight 3.5mm       $*glab text size
    Lterminator Arr       $*terminator type
    Lleader true            $*leader on/off
    Btext 'TYPE TEXT'   $*put text here or from textbox input, your call
    Txcolour Red          $* text colour
    ON ID@ AT@         $*this will let you identify element to attach to and relocate your glab
    REFRESH
    endmethod


    You may also put other attribute as your need in side method or you can also copy the content of the method.. paste in text file and drag to PDMS.. it will work to as MACRO.. its your call.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Francois Rosillo
    Francois Rosillo over 10 years ago
    Thank you very much for your help, I am close to my goal now...
    I created the following function that I am calling from a new toolbar; it works fine

    define function !!myfunction()
    new slab
    Tmrf /MySYTM
    ON PPLIN TOS OF ID@ AT@
    REFRESH
    EndFunction

    The Slab created is attached to the TOS it is ok.

    What I want now is to have the possibility to move the slab along the X axis (only the X axis[/U]).

    I tried something like:

    ON PPLIN TOS OF ID@ AT X@ Y0

    or

    ON PPLIN TOS OF ID@ AT X@ Y OF PPLINE TOS

    but with no success

    Anyone have an idea ??

    Thanks for your help
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Francois Rosillo
    Francois Rosillo over 10 years ago
    Solved:

    define function !!myfunction()
    new slab
    Tmrf /MySYTM
    ON PPLIN TOS OF ID@
    OSET FALSE
    VAR !XYPOS SPLIT XYPOS
    AT @
    VAR !XYPOSO SPLIT XYPOS
    XYPOS X $!XYPOSO[2] Y $!XYPOS[4]
    OSET TRUE
    REFRESH
    EndFunction

    :nevreness:
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Han_BFY
    Han_BFY over 10 years ago
    great!! good job..
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Han_BFY
    Han_BFY over 10 years ago
    in there you may put error handler.. if you cancle the routine
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Han_BFY
    Han_BFY over 10 years ago
    Other option to put elevation for SCTN is using Dimension... on the projection line TEXT...  this will be useful if deal with multilevel.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Francois Rosillo
    Francois Rosillo over 10 years ago
    Han_BFY thanks for your comments....
    How can I include an error handler ? What would be the purpose?
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>