PML form to set attributes in draw

I would like to have a custom dialog box to set selected attributes in a drawing. Could this be done from a PML form?

Some attributes the I would like to write to:

  • Drawing Title (#DTITL)
  • Sheet Title (#STITL)
  • DrawingNumber (#DRWGNUMBER<FR DRWG>)
  • +++
  • ++
  • +

Anyone??

I have made some simple PML forms, but these a limited to CALL operations.

SETUP FORM !!SIMPLE DIALOG DOCK	
TITLE 'SIMPLE'	
FRAME.PI 'PIPING'
BUTTON.PIA 'SIZE' CALL 'Q P1 BORE'
BUTTON.PIB 'DESC' call 'Q DTXR'
BUTTON.PIC 'MATERIAL' CALL 'Q MTXX'
BUTTON.PID 'SPREF' CALL 'Q SPREF'
BUTTON.PIE 'CATA' CALL 'Q CATREF'
BUTTON.PIF 'BOP' CALL 'Q P1BOP'
EXIT
EXIT
SHOW !!SIMPLE

  • It can be done. Maybe it is even easier than a PML-form is to just use a text file. What is your scope/greater goal?

    DRWG as CE

    TITLE 'DRWG TITLE'
    DRWGNUMBER  '42'
    FIRST SHEET    
    TITLE 'SHEET TITLE'

  • PML is not limited to simple CALL (or callback) operations, like the query operations you have showed.

    I suggest you further read the AVEVA-supplied training manual TM-1880 AVEVA Everything3D PML Macros and Functions  and TM-1881 AVEVA Everything3D PML Form Design. The online aveva help Software Customization guide is also helpful 
    https://help.aveva.com/Aveva_Everything3D/2.1/wwhelp/wwhimpl/js/html/wwhelp.htm#href=SOFTCG/SOFTCG_FP.html

    Below is a screenshot from the TM-1881 AVEVA Everything3D PML Form Design 
    In the example below, the button .butt6 has a CALL to the method .check()


          (image copyright belong to AVEVA and/or respective owners)

    When you define the method, you can put more lines of code in it, instead of just one line like "Q P1 BORE" in your example.