get-editor "1.mpef" |

let [val width [get-diagram | get-edit-part -className MethodFormEditPart | get-edit-part

    -className ContainerControlEditPart | get-property width –raw ]]

[val height [get-diagram | get-edit-part -className MethodFormEditPart | get-edit-part

    -className ContainerControlEditPart | get-property height -raw]]

{

get-diagramget-objectinvoke setSize $width $height

get-diagramget-objectsave-screenshot [format "%s%s.png" $screenshotPath $formName]

            }