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

pdf output

Kiran B. Bachhav
Kiran B. Bachhav over 11 years ago
 
  • Sign in to reply
  • Cancel
  • Kiran B. Bachhav
    Kiran B. Bachhav over 11 years ago
    dear gurus,

    I have to export 22 piping plans in PDF format with particular pens of company standards.
    right now i am extracting it in dxf & converting it into PDF this work is time consumable'

    is there any shortcut method or anything so that i can extract all pdf's directly from the draft with company standard pens.


    thanks in advance
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Admin
    Admin over 11 years ago
    Here it is. It will collect all sheets and print them to PDF and save in c:\temp\ - be this folder exists

    !folder = 'C:\temp\'
    VAR !getSheets COLLECT ALL SHEET FOR CE
    do !x from 1 to !getSheets.Size()
    !fileName = !folder + !getSheets[!x].Dbref().Name.Replace('/','_').Replace('\','_').Replace('=','') + '.pdf'
       PLOT $!getSheets[$!x] PDF/$!fileName 'Text' OVER
    enddo

    !needOpen = !!Alert.Confirm('Open folder?')
    if (!needOpen EQ 'YES') then
      SYSCOM 'EXPLORER $!folder &'
      else
      $P Files are printed. Check $!folder
    endif
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Admin
    Admin over 11 years ago
    Hi herculez1980
    there is no method for plot in PDF inside this form although it mentioned as a callback of button
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • SENNIMALAI  K E
    SENNIMALAI K E over 11 years ago
    Try with plot ce option in draft utilities menu

    senni
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Venkata Rao Peta
    Venkata Rao Peta over 11 years ago
    Utilities-->Plot CE
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Alberto Dela Cruz
    Alberto Dela Cruz over 11 years ago
     

    https://aveva.dev-verintcommunity.com/cfs-file/__key/communityserver-discussions-components-files/1605/238881PDFPLOT.pmlfrm

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Alberto Dela Cruz
    Alberto Dela Cruz over 11 years ago
    try to add this..

    define method .export()

    shee
    var!shee shee
    var!namx namn
    var!namd replace(|$!namx|, |/|,|.|)
    !ff = !this.tira.val
    !x = '$!namd' + '.pdf'
    !y = '$!namd' + '.plt'
    !z = '$!namd' + '.dxf'
       if  !this.acom.Selection() eq 'view' then
    !vv = 'VIEW'
    else
    !vv = 'NOVIEW'
    endif
    view 1
    lframe false
    var!ffx vsca

    !fff = !ffx.real()
    !ss = 1 / !fff
    !ffff = !ss.nint()
    $!shee
    $p SCALE UP $!ffff
    PLOT ce pdf /$!ff\$!x 'MINL 0.22,COL BW,$!vv' A0 OVER
    PLOT ce /$!ff\$!y  A0  CUTM OFF OVER
    PLOT ce DXF /$!ff\$!z ACAD ZCOORD EUC SCALEUP $!ffff OVER
    --  SYSCOM 'EXPLORER.EXE  $!ff &'

    ---PLOT ce pdf /d:\plot\$!x 'MINL 0.22,COL BW,VIEW' A0 OVER

    ---PLOT CE PRINT 'MINL 0.22,COL COLOURPLUS' A0

    ---PLOT /PLAN1 PDF /plan.pdf 'MINL 0.22,COL BW,VIEW' A0 OVER

    ---PLOT /PLAN2 IMAGE /plan2.png 'IMAGE PNG,MINL 0.22' A4

    ---PLOT /PLAN3 METAFILE /plan3.pdf 'MINL 0.22' A3 OVER


    endmethod
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Alberto Dela Cruz
    Alberto Dela Cruz over 11 years ago
     

    https://aveva.dev-verintcommunity.com/cfs-file/__key/communityserver-discussions-components-files/1605/238884pdfplot.pmlfrm

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