AVEVA Community
AVEVA Community
  • Site
  • User
  • Site
  • Search
  • User
Modules
  • AVEVA World
  • PDMS/E3D Forum
  • Modules
  • Cancel
Modules
Draft Module FIND and REPLACE COMMAND
  • Forums
  • Resources
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Replies 10 replies
  • Subscribers 5 subscribers
  • Views 40 views
  • Users 0 members are here
Options
  • Share
  • More
  • Cancel
Related

FIND and REPLACE COMMAND

Felix Zamora
Felix Zamora over 11 years ago
 
  • Sign in to reply
  • Cancel
  • Admin
    Admin over 11 years ago
    what do you find and replace? A mass replace or what?
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Admin
    Admin over 11 years ago
    use this one


    !whichText = !!Alert.Input('What TEXT you want to find?','')
    !replaceWith = !!Alert.Input('Replace with?','')
    VAR !texp COLLECT ALL (TEXP GLAB) WITH (MATCHWILD(Btext,'*$!whichText*')) for CE
    do !x from 1 to !texp.Size()
     !newBtext = !texp[!x].dbref().btext.Replace('$!whichText','$!replaceWith')
     $!texp[$!x]
     Btext |$!newBtext|
    enddo



    For Slabs Atext should be used
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Admin
    Admin over 11 years ago
    run it on view level
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Felix Zamora
    Felix Zamora over 11 years ago
    Hi Fellow PDMS User,
    Is there anybody here knows the Find and Replace Command in Draft?
    Thanks in advance folks.

    Regards,
    Felix
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Felix Zamora
    Felix Zamora over 11 years ago
    Dear Ruav,
    I just want to find the TEXP, SLAB, GLAB and replace that value by another text.
    Hopefully you can help me on this.
    Thanks.

    Regards,
    Felix
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Juha Sepponen
    Juha Sepponen over 11 years ago
    collect all texp and glab to list with rule btext eq 'blaablaablaa'. Then modify list members with new btext. Slab has the same attribute as atext so you have to probably do them separately.

    That's the easiest solution that comes to my mind..
    J.Wide
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Felix Zamora
    Felix Zamora over 11 years ago
    That's great idea J. Wide but that is what i am doing.
    But one solution came to my mind.

    Better BDList the sheet and do the thing on notepad using find and replace. :single_eye::single_eye::single_eye:

    Thanks Ruav and J.Wide.
    For giving attention on my quries.

    But if you can find better and easiest solution please don't forget o respond on this.

    Thank you.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • me_hungry
    me_hungry over 11 years ago
    Well, I asume they want to direct U in right way. NOt to solve such easiest problem .
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Sudharsan
    Sudharsan over 10 years ago
    Hai.....

    try this command edtext in list this will simplify your work......     for eg: if i want to change SDxx0147 in the list to SDyy0147, get the list and type the command like edt 0 'xx' 'yy' in action prompt and press action button . it will change the xx letter to yy.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Sudharsan
    Sudharsan over 10 years ago
    Well, I asume they want to direct U in right way. NOt to solve such easiest problem .


    Hai.....

    try this command edtext in list this will simplify your work......     for eg: if i want to change SDxx0147 in the list to SDyy0147, get the list and type the command like edt 0 'xx' 'yy' in action prompt and press action button . it will change the xx letter to yy.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel